jquery - accessing a hidden function with javascript -
Hello, I have some custom functions wrapped in a jQuery document. Most of these functions are used within that function and work, but this is the case where I want to use the function contained in the field from the global field. how can I do this?
No, but you can name the function and send it to .ready () :
var myFunctionName = function (params) {// Do things} // Function ready for callback (document) for jQuery .ready (myFunctionName); // Access directly to any other function like: myFunctionName ('paramaters');
Comments
Post a Comment