I have a generated nested Array which I store some data.
How can i get the 3rd nested array (in this case the array starting with "yellow")
the array looks like this (this is a dynamically generated array):
[
["Large",
["yellow", "green", "Blue"],
["$55.00", "$55.00", "$55.00"]
]
["Medium",
["yellow", "green", "Blue", "Red"],
["$55.00", "$55.00", "$55.00", "$55.00"]
]
["small",
["yellow", "green", "Blue", "Red"],
["$55.00", "$55.00", "$55.00", "$55.00"]
]
]
I am trying to get to the ["yellow", "green", "Blue"] array's length and loop to get the values
for(i=0; colorNSize.dataArray[0][0][1].length<i; i++){
alert(colorNSize.dataArray[colorNSize.Sizeindex][0][0][i])// alert's A (which is the char[1] of the second array.
}
alert(colorNSize.dataArray[0][0][1].length)
actually alerts the length of "Large" which is "5"
is there a limit for nested arrays?
Can i still get the real 3rd array nested here?