hi, (function($) { // in here you can write your code with no conflict to other libraries })(jQuery);
it's the same as: (function($){ //... })(jQuery.noConflict()) $(document).ready(function () { is rather binding function to an event, and that function will be executed when the page is fully loaded. On Feb 17, 12:53 pm, adexcube <alfonsoenci...@gmail.com> wrote: > Hi, I've seen many approaches to document.ready function but I'm just > wondering what's the difference between > > jQuery(function($)... > $(document).ready(function () {... > and > $(function()... > > are all the same? > > Thanks