I have two script’s
test.js
$(document).ready(function() {
hello();
});
anotherscript.js
$(document).ready(function() {
function hello() {
alert("!"));
};
});
If hello() is called exception is thrown saying hello is undefined. How should i make the call then ?
Move you hello be global fucton.