Exactly, it was my intention to make a pointer to the element only :o)
If I trace both elements in firebug, it highlights same element.
That's what confused/tricked me.
Anyway I read into it, and apparently $(this) and this is two
different instances of the same element.
$(this) pointing to the
actually you are not cloning your element, you are just making a
pointer of the element in this line
foo = $(this);
so its not the same element, its just a pointer comparing with an
actual element DOM object
you can see it live in action in this site if you have firebug
http://x1fm.com/music/b
2 matches
Mail list logo