title: Limit Characters jquery
body: <p>I am wondering if it is possible to limit the amount of characters in an element with a specified class using jQuery?</p>
  
  <p>For instance, the following elements with the class shortened would only show 40 or so characters.</p>
  
  <pre><code>&lt;p class="shortened"&gt;This would be the text limited to 40 Characters&lt;/p&gt;
  </code></pre>
  
  <p>Thanks in advance for all your help.</p>