Answers for "js how to grab checked radio input"

11

get radio button value javascript

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

javascript uncheck radio button

document.getElementById("radioButtonID").checked = false; //uncheck a radio button
document.getElementById("radioButtonID").checked = true; //check a radio button
Posted by: Guest on August-02-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language