get radio value on change jquery 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: jquery select specific radio button by value
$("input[name=mygroup][value=" + value + "]").prop('checked', true);