jquery document methods code example
Example 1: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
Example 2: $() jquery document
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});