[jQuery] Re: referring back to a specific element

2009-01-22 Thread Ron
Oh... I thought that there must be some kind of an attribute, like "this.objid" or something similar to get the reference to the object, but could not find it. Apparently it is much simpler than I thought... I did a quick test and it seems to be working fine. Thanks a lot Ricardo.

[jQuery] Re: referring back to a specific element

2009-01-21 Thread Ricardo Tomasi
var lastClicked; $('.A_tables').click(function(){ lastClicked = this; }); later on $('.B_tables input').click(function(){ $(lastClicked).css('background','lime'); }); On Jan 21, 7:26 pm, Ron wrote: > Hi, > How do I refer back to a specific element? > > This is the scenario I'm trying t