+ 2
Why are my 2 radio buttons not linked
https://sololearn.com/compiler-playground/W8BJEoy48w0k/?ref=app
8 Respuestas
+ 7
I noticed that you can select both yes and no. To prevent this you must add the name attribute to your inputs
<input type="radio" id="radio2" name="newspaper">
+ 5
Hope this link helps you
The <input type="radio"> defines a radio button.
Radio buttons are normally presented in radio groups (a collection of radio buttons describing a set of related options). Only one radio button in a group can be selected at the same time.
https://www.w3schools.com/tags/att_input_type_radio.asp
+ 4
Looks like it worked, since you added the name attributes to your code. So what are you saying?
+ 3
SoloProg thx bro
+ 2
Chris Coder it didnt work
+ 1
Chris Coder thx
+ 1
It looks like you have it working now. Just a reminder to keep in your notes, for Radio Button Options: adding name makes it a choice between them rather than being able to select both and not deselect.
0
Phython