[jQuery] Re: Different between this and $(this)

2008-06-26 Thread x-herbert
o.k. fine! I understand the difference! Thanks! x-herbert

[jQuery] Re: Different between this and $(this)

2008-06-26 Thread wellmoon
'this' is standard JavaScript for an object referring to itself '$(this)' is jquery for 'the current object' or similar You can't call jQuery methods on standard JavaScript objects, only on jQuery objects On Jun 26, 2:02 pm, x-herbert <[EMAIL PROTECTED]> wrote: > Hi jQueries; > > what is the di

[jQuery] Re: Different between this and $(this)

2008-06-26 Thread Mario Wolff
Hi! Very simple: this is the (DOM)-object and $(this) is a jquery-object containing the (DOM)-object. To use jQuery methods you need a jQuery object! Regars, Mario On 26 Jun., 15:02, x-herbert <[EMAIL PROTECTED]> wrote: > Hi jQueries; > > what is the different between this and $(this) ?? > > I

[jQuery] Re: Different between this and $(this)

2008-06-26 Thread Steen Nielsen
When you use "this", it returns the standard JS DOM object. But when you use $(this), it will return a jQuery object, which can contain several DOM objects as well as functions and methods. So if you want to use some jQuery methods on an object, you will have to use $(this), but if you use standa