o.k. fine!
I understand the difference!
Thanks!
x-herbert
'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
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
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
4 matches
Mail list logo