text excerpt...character limit
1st Method:-
$("#erd_content").text(function(index, currentText) {
return currentText.substr(0, 60);
});
return currentText.substr(0, 60);
});
2nd Method:-
var txt= $('.erd_content').text();
if(txt.length > 61)
$('.erd_content').text(txt.substring(0,60) + '...');
if(txt.length > 61)
$('.erd_content').text(txt.substring(0,60) + '...');
Comments
Post a Comment