Answers for "how to uncheck radio button"

0

uncheck all radio buttons

$('.classname').prop('checked', false);
Posted by: Guest on May-24-2021
-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
0

how to uncheck a radio button

//jQuery
$('input[name="radio"]').prop("checked", false);

//Vanilla JS
document.getElementById('radio-button').checked = false;
Posted by: Guest on April-18-2021

Code answers related to "how to uncheck radio button"

Code answers related to "Javascript"

Browse Popular Code Answers by Language