Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference body onload and $(document).ready of JQuery

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hello please let me what is so significant in using $(document).ready of JQuery rather than using body onload

Thanks in advance.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody please??
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reading JQuery's documentation tells you what the difference is: http://docs.jquery.com/Events/ready

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic