当有一个为选中时,显示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();
            }
        })
原文地址:https://www.cnblogs.com/wuqilang/p/12099124.html