checked radio button using javascript code example
Example 1: get radio button value javascript
document.querySelector('input[name="rate"]:checked').value;
Example 2: javascript uncheck radio button
document.getElementById("radioButtonID").checked = false; //uncheck a radio button
document.getElementById("radioButtonID").checked = true; //check a radio button