SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to extract from a tag then
a
$('.dep_buttons').text().substr(0,25)
With the mouseover event,
$(this).text($(this).text().substr(0, 25));
The above will extract the text of a tag, then extract again assign it back.