[jQuery] Re: Basic question document.ready

2009-02-17 Thread adexcube
In that case what should be the suggested function to include by default ? I mean I have an initial page and I need some default objects like accordion menu, variables and other functions, should it be enclosed by which tag? Thanks On 17 Feb, 12:36, "tw.gene...@gmail.com" wrote: > hi, > >   (fu

[jQuery] Re: Basic question document.ready

2009-02-17 Thread tw.gene...@gmail.com
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 whe

[jQuery] Re: Basic question document.ready

2009-02-17 Thread hernando
Yes, is the same!!! On Feb 17, 9:53 am, adexcube 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