Thanks for the quick response, Karl.  I'm not sure if this would quite
do it--It looks like you can get an array of the contents of the text
nodes, and you could do a .replace() on those array elements, but I'm
not sure how you would then insert the new text back into the text
nodes.  It seems like a selector like the ones in the Selectors part
of the API doc would be the ideal route.  Any ideas?
-Tom

On Aug 24, 5:28 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> I wrote a plugin that may help:
>
> http://plugins.learningjquery.com/textchildren/
>
> --Karl
>
> ____________
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Aug 24, 2008, at 4:20 PM, Tom B. wrote:
>
>
>
> > Does anyone have code for a text node selector?  I saw this post:
> >http://groups.google.com/group/jquery-en/browse_thread/thread/2dda271...
>
> > but the function textNodes didn't seem to work with the current
> > version of jQuery.  I'm a bit new to jQuery, but I ultimately want to
> > do a regex find and replace on all of the text nodes in a tree (the
> > function needs to select children, grandchildren, etc), so any tips on
> > the best way to do that would be greatly appreciated.
>
> > Many thanks,
> > Tom

Reply via email to