get onchange of a radio button jquery code example
Example 1: jquery get value of radio input
$('input[name="name_of_your_radiobutton"]:checked').val();
Example 2: 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");
}
});