title: how to use substr() function in jquery?
body: <p>how to use substr function in this script I need  <code>substr(0,25);</code></p>
  
  <pre><code>&lt;a class="dep_buttons" href="#"&gt; something text something text something text something text something text something text &lt;/a&gt;
  
  $('.dep_buttons').mouseover(function(){
      if($(this).text().length &gt; 30) {
          $(this).stop().animate({height:"150px"},150);
      }
      $(".dep_buttons").mouseout(function(){
          $(this).stop().animate({height:"40px"},150);
      });
  });
  </code></pre>