IS radio button checked or selected code example
Example 1: check if radio button is checked
$('#element').click(function() {
if($('#radio_button').is(':checked')) { alert("it's checked"); }
});
Example 2: 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-->