DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+2 =
Submit