How to calculate the characters(spaces are excluded) within a pair of tags in JQuery or Javascript? What function?
For example:
<pre id="mytext">This is the text. This is the text.</pre>
How to know how many characters or words in $("#mytext")?