SyntaxFix
Write A Post
Hire A Developer
Questions
If I understand correctly you want to limit a string to 10 characters?
var str = 'Some very long string'; if(str.length > 10) str = str.substring(0,10);
Something like that?