<p>
   <label style="font-size:18px;font-weight: bold;" class="checkboxs">
      <input type="checkbox" name="faci_in_checkbox[]" value="56" class="">&nbsp;B超          
   </label>
   <span>
        <label style="margin-left:0px;" class="auth_rules">
           <input type="checkbox" name="faci_in_checkbox[]" value="65" class="">腹部B超
        </label>
       <label style="margin-left:0px;" class="auth_rules"><input type="checkbox" name="faci_in_checkbox[]" value="66">甲状腺B超</label>
       <label class="auth_rules"><input type="checkbox" name="faci_in_checkbox[]" value="76">  的说法士大夫 </label>              
    </span>
</p>

Jquery 点击父类全选子类 , 子类选父类

$(".checkboxs").click(function (){
    var is_check = $(this).find('input').get(0).checked; //判断是否选中
    $(this).next().find('input').prop("checked",is_check);
})
$(".auth_rules").click(function (){
   $(this).parent().parent().children('label').find('input').prop('checked','checked')
})

 

相关文章:

  • 2022-01-07
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2018-05-24
  • 2021-06-07
  • 2022-02-01
猜你喜欢
  • 2021-04-23
  • 2021-10-14
  • 2021-09-23
  • 2021-11-02
  • 2022-12-23
  • 2021-06-30
  • 2022-02-15
相关资源
相似解决方案