i have a index.php file
<!DOCTYPE HTML>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="test1.js"></script>
<script src="test2.js"></script>
</head>
<body>
</body>
</html>
test1. js is
$(document).ready(function(){
alert('hello');
function check(){
alert('hello i should also appear'); }
});
And test2.js is
$(document).ready(function(){
check();
});
hello is alerting , but hello i should also appear is not alerting , Can someone tell me what i am doing wrong here.
thanks in advannce