Possible Duplicate:
Select element based on EXACT text contents
How do I select a span containing an exact text value, using jquery?
<div>
<span>find me</span>
<span>dont find me</span>
<span>xfind mex</span>
<span>_find me_</span>
</div>
.filterallows you to apply logic to the elements and return only those that match your test(s) back.In case you want a better integrated version, here’s a
:text()selector: