documet ready code example
Example 1: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
Example 2: document ready jquery
$(function() {
// Handler for .ready() called.
});
$(function(){
// equal to $( document ).ready(function() {
});
$(function() {
// Handler for .ready() called.
});