Ok i'v been trying many deferent things to get this to work.
I need a string separated by commas into a 2 dimensional array... like this for example:
string = "a,b,c,d,e,1,2,3,4,5";
array = [['a','1'],['b','2'],['c','3'],['d','4'],['e','5']];
This is the code I have been tweaking.
var temp = list.split(',');
questions = [[''],[''],[''],[''],['']];
five = 0;
one = 0;
for(var i = 0; i < temp.length; i++) {
if(one == 5){five++; one = 0;}
one++;
questions[one][five] = temp[i];
}
btw list = "a,b,c,d,e,1,2,3,4,5".
Thank's in advance!!!