Hi
I am looking at the jquery site at the contains selector.
$("div:contains('John')").css("text-decoration", "underline");
How can I make this so it takes a non hard-coded value in? I tried to do something like this
$("div:contains(" + name + ")")
but that does not seem to work and is very messy. I am probably just missing some brace or something but is there a clean way that will work? Since even if I get this to work the next time I have to expand it will be the same problem again with have so many concatenations and stuff.