radio button html javascript code example
Example 1: radio button html js
getElementById("radio_button").checked(); //returns boolean
Example 2: javascript how to select radio button
function check() {
document.getElementById("red").checked = true;
}