JQuery Interview Questions

JQuery Interview Questions Download JQuery Interview Questions PDF

JQuery Interview Questions

Document.ready() function is different from body onload() function because off 2 reasons.

  • We can have more than one document.ready() function in a page where we can have only one 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.