HTML:
<p class="greeting">
hello, my name is kevin. what's yours?
</p>
jQuery:
$("p.greeting").filter(function (){
return $this.text() === "my name is";
}).css("background", "green");
I'm trying to isolate the words "my name is" in the <p class="greeting">
tag. Can anyone help me with the jQuery as it doesn't seem to work. Thanks.