子钦加油

扩大
缩小

单选框radio改变事件

<input type="radio" name="bedStatus" id="allot" checked="checked" value="allot">Allot
<input type="radio" name="bedStatus" id="transfer" value="transfer">Transfer




$(document).ready(function() {
    $('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");
        }
    });
});

  

posted on 2019-07-30 16:17  子钦加油  阅读(937)  评论(1编辑  收藏  举报

导航

返回顶部