[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Lwangaman
Sorry I see that the comments don't line up well, thought I'd re-write the code such as to simplify reading the comments: // select all the cells with class mychkbox : $(td.mychkbox).each( // apply the mousedown event to each one of these : function(){ $(this).bind( mousedown, //

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Shawn
Lwangaman wrote: alert(itsme.name); // gives undefined because a tablecell usually doesn't have a name attribute associated with it. Remember that your itsme variable is a reference to a DOM element (not a jQuery element). Which explains var itsyou =

[jQuery] Re: value of this after many enclosures!

2009-04-08 Thread Lwangaman
Thanks a lot! That got me going again! (eccomi was supposed to be itsme, eccoti was supposed to be itsyou, I overlooked that transliteration that I was doing from italian!) On 9 Apr, 03:48, Shawn sgro...@open2space.com wrote: Lwangaman wrote:           alert(itsme.name); // gives undefined