I prefer
$(function(){});
to
$(document).ready(function(){});
jQuery(document).ready(function(){});
Using $(function(){}); serves as a nice warning to this effect.
jQuery(document).ready(function($){});
(function($, window, undefined) { $(document).ready({ // etc. }); }(jQuery, window);
$(function () { $('#index').append($('article p:first-child')); });
$ -> $('#index').append $('article p:first-child')
jQuery(function($){
});
It would avoid noConflict type problems.
I prefer
$(function(){});
to
$(document).ready(function(){});