JQuery: How to find a tag having some value
In j开发者_开发百科query, 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"]');
Use $('div:contains()')
.
精彩评论