Hi Nicolas,
As far as I know, .textContent only works in Firefox. The IE
equivalent is .innerText.
jQuery normalizes this with its .text() method.
btw, .text() can also be used as a "setter": $(someElement).text
('This is some text');
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 3, 2007, at 10:17 AM, Nicolas Hoizey wrote:
Hi Karl,
You can try the powerful .filter() method with an anonymous
function as its argument:
$('someElement').filter(function() {
return $(this).text() == 'Some text';
});
I will try this, thanks!
What is the difference between .text() and .textContent?
-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