0
点赞
收藏
分享

微信扫一扫

判断选中的radio选中

倚然君 2022-03-31 阅读 183
前端

 $(document).ready(function(){
            $('#txtRyTypeRemark').hide()
            $("input[name='txtRyType']").each(function () {
                $(this).click(function () {
                    if (this.defaultValue == '驾驶员' || this.defaultValue == '志愿者' || this.defaultValue == '赞助商') {
                        $('#txtRyTypeRemark').hide()
                        $('#txtRyTypeRemark').val=''
                    } else {
                        $('#txtRyTypeRemark').show()
                        $('#txtRyTypeRemark').val = ''
                    }
                })
            })
        })

举报

相关推荐

0 条评论