Thursday, April 18, 2013

jQuery Document.Ready()

Document.Ready():

The most commonly used command in jQuery is Document.Ready(). It makes sure code is executed only when a page is fully loaded. We often place code blocks inside this Document.Ready() event. For example:

$(document).ready(function(){
 $("#buttonTest").click(function(event){
   alert("I am ready!");
 });
});

No comments:

Post a Comment