i want to check the first element of multiple radiobutton groups.
I’m using Firebug, which is why i do not want, yes i know there is firequery, but there must be a way like they did it in the old days 🙂
Any help yould be great, thx 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.
Loop backwards over
document.getElementsByTagName('input')and setcheckedtotrueiftypeis equal to"radio".If you try to check multiple buttons in the same group, the last one will hold.
Thus, looping backwards will end up checking the first option in each group.