radio checked value code example
Example 1: jquery get value of radio input
$('input[name="name_of_your_radiobutton"]:checked').val();
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-->
Example 3: How can I know which radio button is selected via jQuery
if ($('input[name="radioName"]:checked', '#myForm').length) {
//Yes, it's checked!
}
Example 4: radio input value
<input type="radio" name="test" id="test" value="this is the value">