[jQuery] Calling functions across multiple $(document).ready() blocks
Hi,
I know it's possible to use multiple $(document).ready() blocks, but it
seems as though you are unable to make function calls across the
different blocks, eg:
$(document).ready(function() {
var someFunction = function() {
// some function that does stuff
};
});
$(document).ready(function() {
someFunction(); // a function that exists in another ready() block
});
This results in a "someFunction is not defined" error. Is there a way
around this, or is it not possible?
Thanks,
-j