I have elements like
user[0][foo], user[0][bar], user[1][foo], user[2][bar]
which are names of select tags.
I want use the ^= operator to use jQuery('select[name^=(something)')
so that I can gather all the foos together.
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.
Is there anything stopping you using the ends with selector instead?
Note we’re having to escape the “
]” as it’s a “meta-characters”:http://api.jquery.com/category/selectors