I have a comma seperated list
var list = 1,2,3,4,5,6
Can I use jquery to get the value of list item 3 (for example)
Thanks in advance.
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.
The proper way of define a list in javascript should be
after that, you can just retrieve the value using i[3], which is 4. You don’t really need to use jQuery as javascript support it by default