title: Truncating Description Text in Magento
body: <p>I am using Magento 1.7.0.2 and I want to truncate texts of long item descriptions.
  So, I stumbled upon this: <a href="http://www.jeremymartin.name/projects.php?project=jTruncate" rel="nofollow">http://www.jeremymartin.name/projects.php?project=jTruncate</a>.</p>
  
  <p>In my page.xml the following scrips are called:</p>
  
  <pre><code>&lt;action method="addJs"&gt;&lt;script&gt;jquery/jquery-1.8.3.min.js&lt;/script &lt;/action&gt;
  &lt;action method="addJs"&gt;&lt;script&gt;jquery.jtruncate.js&lt;/script&gt;&lt;/action&gt;
  </code></pre>
  
  <p>In my view.phtml I added the following line at the top: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $().ready(function() {  
      $('#maintext').jTruncate();  
  }); 
  &lt;/script&gt;   
  </code></pre>
  
  <p>and in my item description I used:</p>
  
  <pre><code>&lt;p id="maintext"&gt;....text....&lt;/p&gt;
  </code></pre>
  
  <p>Firefox tells me that the scripts get loaded, no errors appear and it does not work.
  Anyone have any ideas why or an alternative solution? 
  Thank you!</p>