隐藏非选中的checkBox

//隐藏非选中的checkBox
    function onlyCheckBox(){
        $("#dtlTable tr:gt(0)").each(function(i) {
            var chkListProduct = $("input[name='chkListProduct']", this);
            if (chkListProduct.is(':checked')) {
            }else {
                chkListProduct.parents("tr").hide();
            }
        })
    }
chkListProduct 是复选框的ID

猜你喜欢

转载自www.cnblogs.com/cxw-cm/p/9225969.html
今日推荐