each element of which contains a split substring. For example the following string:
var myListSting = '' apple,banana,peach,orange''
can be split into an array where each element contains a different fruit, for example:
var myFruitArray = myListSting.split( '','');
str="j,s,in,of,s,p,l,i,t"; //this is a string
var array= new Array(); //Define an array array=str.split(","); // character split for (i=0;i<array.length ;i++ ) { document.write(array[i]+"<br/>"); //The split character output } alert((array[i]+"<br/>")