Calling a jquery function on DOM load
Hi Everyone, I was wondering the correct way to call a function when the DOM loads.
For example:
- $.fn.doThings = function()
- {
- ...do some stuff
- };
- $(document).ready(doThings);
Any help would be appreciated.
Thanks