Reputation:
due to some reason I cant use the css method
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 100px;
the above make my user define text in a li if reached 100px, it will add '...', can it be achieve using jquery?
Upvotes: 0
Views: 46
Reputation: 6544
You can simply use the Jquery ellipse plugin
$('#target').ellipsis({
row: 2
});
Upvotes: 1