• Register
Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

What is $(document).ready() function in jquery? Why we use it?

0 votes
84 views
What is $(document).ready() function in jquery? Why we use it?
asked Nov 12, 2015 in jQuery by Vivek Srivastava

1 Answer

0 votes

ready():- ready() function is used to execute javascript or html code when document is ready for manipulation. jQuery allows you to run or execute code, when DOM is completly and fully loaded.

Main benefit of $(document).ready() function:-

  • It works in all browser
  • jQuery handles cross browser.

More information about $(document).ready(function(){});

answered Nov 15, 2015 by john12 (2,960 points)
...