Is it possible to use javascript to populate multidimensional arrays.
I want to create three dropdownlists to display “name”, “nationality” and “occasion”. However, I only can complete a two dimensional arrays.
Any good idea?
Thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Literal objects:
You can access an update JS objects using
dotnotation or array notation:You can push objects into and array to create a collection. Multi-dimensional arrays are not necessary for the task you are describing.