Grokking the text() method
One might incorrectly assume that the text() method only returns the text node of the first
element in a wrapper set. However, it will actually join the text nodes of all elements contained
in a wrapper set and then return the concatenated value as a single string. Make sure you are
aware of this functionality, or you might get some unexpected results.
Sample: sample46.html
1,
2,
3,
4
Update or remove characters using a regular expression
Using the JavaScript replace() method combined with some jQuery functionality, we can very
easily update or remove any pattern of characters from the text contained within an element.
Sample: sample47.html
I really hate using JavaScript.
I mean really hate it!
It is the best
twister
ever!