Sponsered Links
Categories
Sponsered Links

JQuery callback Method

 

This function behaves just like $(document).ready(), in that it should be used to wrap other $() operations on your page that depend on the DOM being ready to be operated on. While this function is, technically, chainable - there really isn't much use for chaining against it. You can have as many $(document).ready events on your page as you like. See ready(Function) for details about the ready event.

Finally we can say that this function allows you to bind a function to be executed when the DOM document has finished loading.

In this Example Executes the function when the DOM is ready to be used.

$(function(){
  // Document is ready
});

jQuery(function($) {
  // Your code using failsafe $ alias here...
});

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved