cut string and assign into array in javascript -
Do anyone know how I can cut a string and then allocate in an array with Javascript? Example:
var string = "15; 24; 67; 34; 56";
I hope TP will cut this string in the format below and assign it to the array:
a [0] = 15a [1] = 24a [2] = 67a [3] = 34 a [3] = 56
var a = string Split (';');
Comments
Post a Comment