comment utiliser la fonction substr() en jquery?

comment utiliser la fonction substr dans ce script j'ai besoin de substr(0,25);

<a class="dep_buttons" href="#"> something text something text something text something text something text something text </a>

$('.dep_buttons').mouseover(function(){
    if($(this).text().length > 30) {
        $(this).stop().animate({height:"150px"},150);
    }
    $(".dep_buttons").mouseout(function(){
        $(this).stop().animate({height:"40px"},150);
    });
});
InformationsquelleAutor Val Do | 2014-01-29