my two js files (file1.js & file2.js) works but when i made some changes in file2.js then it doesn’t work, why?.
/* file1.js */
$(function() {
$(".some").click(function() {
...
});
});
/* file2.js */
window.onload = test();
function test() {
$(".dragfile").draggable(function() {
...
});
$(".resize").resizable(function() {
....
});
}
Now i make changes in file2.js and some functions are not working. file1.js remains same
/* file2.js */
// window.onload = test(); function test() { }
$(function() { // modified
$(".dragfile").draggable(function() { // this function works
...
});
$(".resize").resizable(function() { // this isn't working
...
});
});
I do not see any declaration error although i’d say to go through your files again, clean server directory & publish project again.
It seems your file is not updated when you make any changes.