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?
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?