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 |
What is the difference between "#" and "." selector in JQuery?
Explain the difference between find and children methods in jquery?
How we can get the value of a radio button using jquery?
How to divide a page into parts using jquery mobile? : jquery mobile
What are two different version of jquery library? : jquery mobile
Whether C# code behind can be called from jQuery?
How to revert the most recent ‘destructive’ operation, changing the set of matched elements to its previous state using ?
Can you write a jquery code to select all links inside the paragraph?
Tell me which command will give a version of jquery?
How do you get the text value of a selected option?
Tell me an example usage of jquery mobile? : jquery mobile
Can we execute/run multiple Ajax request simultaneously in jQuery? If yes, then how?