what is difference between
$(function(){ });
and
$(document).ready(function() { });
Both are equivalent, the first is a shorthand form.