radio button group change event javascript code example
Example 1: change on radio button
$('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: radio button group get value javascript
$('input[name=gender]:checked').val();