0
Html radio button
Why? While using radio button in html i can select both the option, but the property of radio button states it can select only one option why is it happening?
3 odpowiedzi
+ 2
Ayush Tripathi, you will have to add the radio buttons in a Button Group.
It is a characteristic property of RadioButtons in both Java and HTML, until it is in a ButtonGroup.
You can use the following to create a group:
<div class="btn-group">
<button>Name</button>
<button>Class</button>
<button>Rollno</button>
</div>
OR
<form>
<input type="radio" name="btn-grp" value="Name" checked> Name<br>
<input type="radio" name="btn-grp" value="Class"> Class<br>
<input type="radio" name="btn-grp" value="Rollno"> Rollno
</form>
Make sure to have the same name(Here btn-grp).
+ 3
then maybe youre declaring several seperate radios thinking they are linked together
+ 2
If you link your code, i would be happy to have a look and help out where i can