var a="100-20101"; var b=a.split("-"); var c=b[0]; var d=b[1];
message = "100-20101"; var word= message.split("-") //var1 & var2 will have 100 & 20101 var1 = word[0]; var2 = word[1];
var str = "100-20101"; var result = str.split("-", 1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)