Load One Time Beside The $(document).ready(...) ? Jquery
I have a problem with triggering a function which needs to be loaded only one time.But I don't want to put it into: jQuery(document).ready(function ($) { }); I want to run it sep
Solution 1:
Just add another ready
or load
function : you may have as many as you want, they will all be called in order :
jQuery(document).ready(function() {
// this will be run
});
jQuery(document).ready(function() {
// and this one too (after the other one)
});
Solution 2:
It you want it to run onload
use:
jQuery(window).load(function () {
// run
});
Keep in mind that ready
fires before load
.
Post a Comment for "Load One Time Beside The $(document).ready(...) ? Jquery"