Hi Shawn,
They're functionally equivalent. The only difference is that $
(function() {}); is shorter and $(document).ready(function() {}); is,
at least to me, more intuitive.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 21, 2008, at 12:56 AM, Shaw
you are also using $.fn.ready(function(){
});
this is the most direct way to use it
Both are exactly the same, the first one is just a shorter way to write and
one step further in fast development with jQuery
On Tue, Oct 21, 2008 at 6:56 AM, Shawn <[EMAIL PROTECTED]> wrote:
>
> I am seeing more and more references to using the $(function() {}); format
> for
> the ready method.
3 matches
Mail list logo