explode(";", data) in javascript code example
Example 1: javascript explode space
var str = "my car is red";
var stringArray = str.split(/(\s+)/);
console.log(stringArray); // ["my", " ", "car", " ", "is", " ", "red"]
Example 2: segregate value by _ using jquery like explode
var myString = 'IE, Firefox, Opera, Chrome, Safari';
var myStringArray = myString.split(',');
The values are now in myStringArray - myStringArray[0] would be 'IE'