inside an each loop, "this" refers to the actual DOM element. $(this) will wrap jQuery around that DOM element, so you can do stuff with it, like effects and whatnot. same thing with the window, $(window) thing, window refers to the browser object "window", and $(window) wraps jquery around the window object. Browsers dont let you do much with the window object, but its usefull for checking if the page has loaded.

On 10/23/06, Truppe Steven <[EMAIL PROTECTED]> wrote:
It's working now. Thank you for the fast reply !

I haven't seen $(window) until now. What's the difference between window
and $(window).
Also when inside of an .each(function(){}); what's the difference
between this and $(this) ?

Is this some wrapper for objects to extend their functionality over jquery ?



Truppe Steven

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to