sorry, of course... did look too much at it to see the most obvious solution.
Karl Swedberg-2 wrote: > > Hi Manuel, > > You have to concatenate the rest of the selector, which is a string, > and the variable: > > $('.removeFav[adld=' + adId + ']').show(); > > > --Karl > > ____________ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > > On Jan 23, 2009, at 10:44 AM, aldana wrote: > >> >> >> hi, how do i let a variable evaluate inside an attribute selector: >> >> var adId=$(this).attr("adId"); >> //i want adId to be evaluated and not compare directly to 'adId' >> string >> $('.removeFav[adId=adId]').show(); >> >> thanks. >> >> ----- >> manuel aldana >> aldana((at))gmx.de >> software-engineering blog: http://www.aldana-online.de >> -- >> View this message in context: >> http://www.nabble.com/attribute-selector%3A-evaluating-to-variable-tp21626781s27240p21626781.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. >> > > > ----- manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/attribute-selector%3A-evaluating-to-variable-tp21626781s27240p21627604.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.