html javascript on document ready code example
Example 1: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
Example 2: jquery ready
// jQuery document ready function
$(function() {
// do stuff
});
Example 3: ondocumentready
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});
Example 4: ready function jquery
ready function js