SyntaxFix
Write A Post
Hire A Developer
Questions
Try the following snippet:
var mystring = 'this,is,an,example'; var splits = mystring.split(","); alert(splits[0]); // output: this