Home » Labs » Alternative way for jQuery $(document).ready  

Alternative way for jQuery $(document).ready


Filed under Labs

Here is an alternate for jQuery $(document).ready(function(). Instead of using $(document).ready(function() you can use $(function() for more clarification please look the code usage.

//Instead of this 
$(document).ready(function() {
    //document ready
});
//you can use below code
$(function(){
    //document ready
});
Tags:

Posts you may like: