Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

limit characters display javascript

var str = 'Some very long string';
if(str.length > 10) str = str.substring(0,10);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #limit #characters #display #javascript
ADD COMMENT
Topic
Name
4+4 =