jQuery: The Write Less, Do More JavaScript Library

How to find elements with an exact text content?

by Nicolas Hoizey :: Rate this Message:

| View in Thread


Hi,

I'm currently using :contains() to find elements that contain some  
string:

<http://docs.jquery.com/DOM/Traversing#contains.28_str_.29>

I would like now to find only elements that have a text content  
exactly equal to the string I chose.

I didn't find any simple solution in the list archives or in any  
documentation.

Thanks.


-Nicolas

--
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/38608514@N00/M1c002


 « Return to Thread: How to find elements with an exact text content?