On Dec 12, 2006, at 6:07 PM, SRobertJames wrote:
>
> Why do I need to wrap the this with $(this) - (when using $ 
> ('#...').each) -
> why isnt' that done automatically?

Hi Robert,
Actually, I just mentioned this in my blog entry last night:
http://www.learningjquery.com/2006/12/multiple-fancy-drop-caps

Basically, You would continue to use $(this) if you wanted to apply  
jQuery methods to it.
If you wanted to refer to the DOM elements themselves, you would use  
"this"

I'm sure someone else can go into greater detail about this, but I'm  
pretty sure that at its basic level it's the difference between using  
a jQuery object and using a DOM node.

Karl
_______________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to