function check(id) { document.getElementById(id).checked = true; }
<input type="radio" id="huey" name="drone" value="huey" checked> <!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio-->
checked="checked"
<input type="radio" id="male" name="gender" value="male"> <label for="male">Male</label><br> <input type="radio" id="female" name="gender" value="female"> <label for="female">Female</label><br> <input type="radio" id="other" name="gender" value="other"> <label for="other">Other</label>
//checked <input type="radio" id="huey" name="drone" value="huey" checked>
<input type="radio" name="imgsel" value="" checked>