How to split a string in JavaScript with the "," as seperator?
views:
112answers:
3
A:
var expression = "h,e,l,l,o";
var tokens = expression.split("\,");
alert(tokens[0]);// will return h
Ravia
2010-02-04 09:59:02
why are you splitting on `\,`? Is that just a typo?
Matt Ellen
2010-02-04 17:39:10