get first five chars of string js code example
Example 1: js only first 50 letters
'Hiya how are you'.substring(0,50);
Example 2: js substring first 4 numbwe
mystring = "9862 ....... -pack size 1 - SST Unspun Label (Roll) CAT#: 9862";
mystring = mystring.substring(0, 4);
alert(mystring.trim());