Answers for "select only one radio button javascript"

11

get radio button value javascript

document.querySelector('input[name="rate"]:checked').value;
Posted by: Guest on May-17-2020
-1

selecting only one radio button

<!-- Just give all the radio buttons the same name. 
Html will then allow you to select only one. -->

<input type="radio" name="radAnswer" />
Posted by: Guest on May-31-2021

Code answers related to "select only one radio button javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language