📅  最后修改于: 2022-03-11 15:01:31.907000             🧑  作者: Mango
$('input[type=radio][name=gender]').change(function() {
if (this.value == 1) {
alert("Select Male");
}else if (this.value == 2) {
alert("Select Female");
}
});