jquery判断checkbox是否被选中

<script type="text/javascript">
    function checkout() {
        if ($("input[type='checkbox']:checked").length <= 0) {
            alert("一个都没有选");
        }
    }
</script>

转载于:https://www.cnblogs.com/xiaota/p/3139689.html

猜你喜欢

转载自blog.csdn.net/weixin_33766805/article/details/94506400