Answers for "select one radio button at a time in html"

55

radio buttons html

<input type="radio" name="gender" value="male"> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
Posted by: Guest on February-09-2020
-1

how to add select only one radio button in html

<input type="radio" name="nameA" id="nameA" value="nameA">
<label for="nameA">Choice A</label>
<input type="radio" name="nameB" id="nameB" value="nameB">
<label for="nameB">Choice B</label>
Posted by: Guest on November-13-2020

Code answers related to "select one radio button at a time in html"

Browse Popular Code Answers by Language