[Solved] How to disable all the above checkbox options If someone click on None of the above checkbox? [closed]


Please use this code I hope it’s helpful for you.

Thanks

  <input type="checkbox" name="check" value="father" class="group1">Father
    <input type="checkbox" name="check" value="mother" class="group1">mother
    <input type="checkbox" name="check" value="son & doughter" class="group1">son & doughter
    <input type="checkbox" name="check" value="none" id="none" class="group1">none

 $(function(){
 $("#none").on("click",function(){
    if (this.checked) {
        $("input.group1").attr("disabled", true);
    }else{
        $("input.group1").attr("disabled", false);
    }
 });
});

solved How to disable all the above checkbox options If someone click on None of the above checkbox? [closed]