Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Thursday, April 14, 2011
How to convert a string into string array in Javascript?
var
onestring =
"a,b,c"
;
var
stringlist = points.split(
","
);
var
stringarray =
new
Array(stringlist.length);
for
(i = 0; i < stringlist.length; i++ ) {
stringarray[i] = stringlist[i];
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment