javascript trying to get 3rd nested array.length and value
- by adardesign
How can i get the 3rd nested array (in this case the array starting with "yellow")
the array looks like this:
[
["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 nothing
}
It actually alerts the length of "Large" which is "5"
is there a limit for nested arrays?
Can this be done?