0 votes
432 views
in jQuery by
What is $(document).ready() function in jquery? Why we use it?

1 Answer

0 votes
by (4.4k points)

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(){});

Share:- Whatsapp Facebook Facebook


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

Categories

...