当有一个为选中时,显示div

        <input type="checkbox"  >
        <input type="checkbox"  >
        <input type="checkbox"  >
        <input type="checkbox"  >
        <input type="checkbox"  >

        <div></div>
        var inputs=$("input");
        inputs.click(function(){
            if(inputs.is(":checked")){
                $("div").show();
            }else{
                $("div").hide();
            }
        })
posted @ 2019-12-25 21:39  吴小明-  阅读(330)  评论(0编辑  收藏  举报