Javascript string functions?
<p>I have strings like this:</p>

<pre><code>abcdefg
abcde
abc
jjjj
</code></pre>

<p>I need is them trucated to show like this if more than a specified lenght:</p>

<pre><code>abc ..
abc ..
abc
jjj ..
</code></pre>

<p>Is there any simple javascript code I can use for this functionality</p>
