Is there any difference between body onload() and document.ready() function?
Answer / chaitanya
document.ready() function is different from body onload() function for 2 reasons.
We can have more than one document.ready() function in a page where we can have only one body onload function.
document.ready() function is called as soon as DOM is loaded where body.onload() function is called when everything gets loaded on the page that includes DOM, images and all associated resources of the page.
Is This Answer Correct ? | 0 Yes | 0 No |
Is it possible that jquery html work for both html and xml document?
Is Uncaught TypeError: $(…).modal not a function jquery?
Define the types of selectors in jquery?
Tell me can we have multiple document.ready() function on the same page? : jquery mobile
Explain the use of data-role=”page” attribute? : jQuery Mobile
Define each() function in jquery?
What does $("P") will select?
How to run an event handler only once in jQuery?
Where jQuery code is getting executed?
Is numeric in jquery?
Can we call c# codebehind method using jquery?
How do you stop the currently-running animation? : jquery mobile