HTML:
form
input:radio 1
input:radio 2
input:radio 3
If one of these is clicked, I’d like to disable the rest. I think siblings selector will be used here but I can’t figure out how.
Thanks for your help!
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.
I think you’re trying to disable the others, and for that you need to set the disabled=disabled attribute of the radio input.
Example Here: http://jsbin.com/oquse/2
View/Edit Code Here: http://jsbin.com/oquse/2/edit