Possible Duplicate:
Given an ID, find and replace the last sentence with a span wrapper
Give a DIV with a block of text with sentences, meaning a period.
How does one use the JQUERY text nodes to find the last sentence and wrap just the last sentence in a SPAN tag?
Thanks
` elements with text. But in between the various `
` elements, there's additional text. That additional text is represented by a "text node". It's like a container when there isn't a container specified. So if you want to wrap an entire text node, that is easy. But text nodes are not broken down by sentence. So one text node, could have 100 sentences. There is no further breakdown within the node.
` tags with text content.