documents ready jquery code example
Example 1: jquery ready
// jQuery document ready function
$(function() {
// do stuff
});
Example 2: ondocumentready
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});