get value of radio button jquery on change code example
Example 1: on radio button change jquery
$('input[type=radio][name=bedStatus]').change(function() {
if (this.value == 'allot') {
alert("Allot Thai Gayo Bhai");
}
else if (this.value == 'transfer') {
alert("Transfer Thai Gayo");
}
});
Example 2: how to get the value of radio button in jquery
By LOVE
Here , name=Gender is the name attribute value of the radio button
$("input[name='Gender']:checked").val()
Example 3: get value of checked radio button jquery
$('form input[type=radio]:checked').val();