I would like to declare a global variable but on a different page. So all my global variables go on data.js and all the JavaScript functions go on script.js I can do it in JavaScript but how do you do it in jQuery?? When I put my all JavaScript Codes in
$(function() {
//JavaScript Codes
});
It doesn't work any more.
Here's my code: