I have a web form that have 5 radio button with the same id.
How can I catch all the radio buttons in a vector from JavaScript?
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.
You should use different ids or different names for html elements. Also jquery helps you on this subject.
it helps you to select all radio elements on the page. You can do what you want with using Jquery.
here is the jquery source: http://code.jquery.com/jquery-1.4.2.min.js