Welcome, then you can see a function called limitChar that limits
the number of char the selected item,
the function contains two parameters: the first is to indicate the number of chars and the second is optional,
default true, for show or not ellipsis at the end of string.
limitChar Jquery
By http://jquery-manual.blogspot.com
The limitChar function allow limit the number char of the element/s selected.
$(element).limitChar(count int, dat(optional) true | false . Default true.);
Download on GITHUB
Limitar números de carácteres con Jquery.
Limit number of char with Jquery.
|
$("#btn-1").click(function(){ $(".div-1").limitChar(16, true); }); |
Limitar números de carácteres con Jquery.
Limit number of char with Jquery.
|
$("#btn-2").click(function(){ $(".div-2").limitChar(23, false); }); |
|
$("#btn-3").click(function(){ $("#table tr td").limitChar(50, true); }); |
No hay comentarios:
Publicar un comentario