JQuery Truncate Text and insert
<p>I am using some Jquery to insert a element before another element as below:</p>

<pre><code>$(document).ready(function(){

$('a[href*="FolderCTID"]').each(function(){
$(this).closest('tr').find('div[class^="ExternalClass"]').before(this);
     } ); 

      });
</code></pre>

<p>I am able successfully insert before the element </p>

<p>But, <strong>.find('div[class^="ExternalClass"]')</strong> in the script above is the element i want to truncate before inserting on runtime.</p>

<p>Please help me, how i can truncate the text before i actually insert  </p>

<p>Thanks in advance</p>
