Saturday, 14 September 2013

javascript to achive the same result as css ellipsis

javascript to achive the same result as css ellipsis

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?

No comments:

Post a Comment