javascript limit of characters code example
Example: limit characters display javascript
var str = 'Some very long string';
if(str.length > 10) str = str.substring(0,10);
var str = 'Some very long string';
if(str.length > 10) str = str.substring(0,10);