Possible Duplicate:
Find text string in jQuery and make it bold
How can I use the jQuery :contains(some text) selector but only select "some text" from "this is some text"?
I have something like this:
<div class="search">this is some text</div>
I am currently using code like this:
$("div.search:contains(some text)").css("text-decoration","underline");
But that underlines "this is some text" and I want it to only underline "some text".
How can I accomplish that most simply?