How to use jQuery to do the sum of characters in different paragraphs? Example:
<div id="test">
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
</div>
Obs. Can not add id
and class
to <p>
tags.
I was able to do a function ( here ), but it uses .each()
of jQuery. I would like to know if there is any other more efficient way to resolve this.