[jQuery] Re: how to write the jquery syntax to select single word within an element

2009-09-27 Thread rossenbere
Thank you so much bibby for trying to answer my question so thoroughly. My call for help was in fact dictated by lack of time. I thought the solution was somehow going to be obvious, but now it see I was totally wrong. On 27 sep, 16:47, bibby wrote: > Hi rossenbere, > There's something about "te

[jQuery] Re: how to write the jquery syntax to select single word within an element

2009-09-27 Thread Charlie
great explanation! Rather than reinvent the wheel I've used the "highlight" plugin with success. I'm sure there are probably other plugins for same purpose as well http://johannburkard.de/blog/programming/_javascript_/highlight-_javascript_-text-higlighting-jquery-plugin.html bibby wrote:

[jQuery] Re: how to write the jquery syntax to select single word within an element

2009-09-27 Thread bibby
Hi rossenbere, There's something about "text" that you should be aware of; text is rendered as tree nodes just like other elements, the difference being that they are unique types. ( elm.nodeType == 1 == DOM Element , elm.nodeType == 3 == TextNode ). In the example, "a div with 2 paragraphs. Eac