jquery - How to retrive value from array of arrays? -
[["sports","any"],["sports","cricket"],["sports","football"],["sports","other"]] if want retrieve cricket that?
how achieve it?
depends on language, expect [1][1] should it.
assuming array called arr arr[1] refers ["sports","cricket"] (0 based index) array, can indentify elements same way usual... using [1] access "cricket"... together: arr[1][1].
Comments
Post a Comment