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" <tw.gene...@gmail.com> wrote:
> 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

Reply via email to