[jQuery] attribute selector: evaluating to variable

[jQuery] attribute selector: evaluating to variable


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.