How can i get the second values (dates) in a javascript array?
I am new to this and i can’t get it to work.
{"0":"11-28-2012","4":"11-29-2012","10":"12-03-2012"}
Thanks!
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.
A very simple loop is below. You should check that the object hasOwnProperty which is important for more complicated objects.
If your object is called obj:
Or without the loop: