I have been trying to perform a split, but so far I have not had success.
Here is what I have so far:
I initialize a simple String:
var str = "matt.williams:STRING:ClassWork|1902122:STRING:AskAFriend";
My next step is then to output the values of the Array:
var m = str.split("|");
var x = new Array();
x=m;
for (z in x)
{
document.write(z + "<br />");
}
However, it produces this:
0
1
But What I want to output is this:
matt.williams:STRING:ClassWork
1902122:STRING:AskAFriend
Change this line:
to