[jQuery] Re: retrieving textnode?

2010-01-05 Thread bundy
ode in a span (with a certain class, for example). > > On Tue, Jan 5, 2010 at 2:00 AM, bundy wrote: > > Hi, I'm new to jQuery, finding feet. > > > I want to be able to say, "if the text node of a certain child > > consists of certain string, do this with its css&q

[jQuery] retrieving textnode?

2010-01-05 Thread bundy
Hi, I'm new to jQuery, finding feet. I want to be able to say, "if the text node of a certain child consists of certain string, do this with its css". Gotten as far as changing the css of all the children, thus: $(document).ready(function(){ $("div > p::nth-child(6).css("color", "red"); });