I\'ve seen four different ways to tell jQuery to execute a function when the document is ready. Are these all equivalent?
$(document).ready(function () {
Here's another one - starts like this...
(function (jQuery) {
then to finish...
})(jQuery);
An example is here: http://jsfiddle.net/C2qZw/23/