My output should be like this: (eg. data)
myArray = [ [otherArray0], [otherArray1], [otherArrayN] ]
My try:
var myArray = [];
var num = 50;
for (i=0; i<num;i++)
{
var a = 0;
$('#divID .class select[value!=""]').each(function() //get values from a select
{
var otherArray+i = []; //each for cycle is a new "sub array"
otherArray+i[a] = $(this).val(); //store in array the values from select
a++
})
}
Am I thinking well?
Firstly
Then
But your code can be made a lot simpler