Find how many characters there are per line, in textarea
<p>I have a textarea, and I need to figure out how many characters there are per row, in my textarea. The characters per row changes depending on the character size, and the cols of the textarea, so I'm wondering if there is a way to find it without counting them manually. </p>

<pre><code>&lt;textarea cols = '5' rows = '10'&gt;1234567&lt;/textarea&gt; 
^----7 characters fit in a textarea with a cols of 5, and default font-size;

&lt;textarea cols = '6' rows = '10'&gt;12345678&lt;/textarea&gt; 
^----8 characters fit in a textarea with a cols of 6, and default font-size;

&lt;textarea cols = '7' rows = '10'&gt;123456789&lt;/textarea&gt; 
^----9 characters fit in a textarea with a cols of 7, and default font-size;
</code></pre>