tags:

views:

14

answers:

1

Hi,

In jquery, it is easy to find input elements having a value like:

$('input[value="some value"]');

but how do you find a div with certain value:

<div>Hello There</div>

I tried this but it does not work:

$('div[value="Hello There"]');
+2  A: 

Use $('div:contains()').

g.d.d.c