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?
var myArray[i] = array ();should bevar myArray[i] = [];myArray[[otherArray1],[otherArray2],[otherArrayN]]where each otherArray has diferent values stored.[["otherArray1"],["otherArray2"], ...]?