Hi there Nicolas,
You can try the powerful .filter() method with an anonymous function
as its argument:
$('someElement').filter(function() {
return $(this).text() == 'Some text';
});
I'm pretty sure that will get what you're looking for.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 3, 2007, at 8:14 AM, Nicolas Hoizey wrote:
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/[EMAIL PROTECTED]/M1c002