addeventlistener radio checked code example
Example 1: javascript uncheck radio button
document.getElementById("radioButtonID").checked = false; //uncheck a radio button
document.getElementById("radioButtonID").checked = true; //check a radio button
Example 2: document get element by id radio button
var selectedOption = $("input:radio[name=option]:checked").val()