when document ready jquery code example
Example: ondocumentready
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});