How to find number of characters in a div line by line?
<p>here is the image to explain it</p>

<p><img src="http://i.stack.imgur.com/BVmtd.png" alt="div line"></p>

<pre><code>&lt;div id="tshirt"&gt;
    &lt;div id="text-wrapper"&gt;
        &lt;p id="tshirtover"&gt;Nothing is impossible unless we try it&lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Is there any way to find the length of the first line?</p>

<p>I tried below jQuery function. It's giving the entire length of the string. </p>

<pre><code>$("#tshirtover").text().length;
</code></pre>

<p>But i need to find only the first line. Is it possible to get it?</p>
