js select radio button code example
Example 1: html radio button checked
<input type="radio" id="huey" name="drone" value="huey"
checked>
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio-->
Example 2: javascript how to select radio button
function check() {
document.getElementById("red").checked = true;
}