[jQuery] Re: Howto assign $(this) to variable

2008-05-09 Thread Jong
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

[jQuery] Re: Howto assign $(this) to variable

2008-05-08 Thread mrpollo
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