how to uncheck a radio button in javascript code example
Example 1: how to uncheck a radio button
//jQuery
$('input[name="radio"]').prop("checked", false);
//Vanilla JS
document.getElementById('radio-button').checked = false;
Example 2: javascript uncheck radio button
document.getElementById("radioButtonID").checked = false; //uncheck a radio button
document.getElementById("radioButtonID").checked = true; //check a radio button