How to split a string in JavaScript with the \",\" as seperator?
,
Use split to split your string:
"foo,bar,baz".split(",") // returns ["foo","bar","baz"]