<script type="text/javascript">
$(
function() {
$(
"#CheckBox_all").click(function() {
$(
"input[type='checkbox']").attr('checked', this.checked);
});
$(
"input[type='checkbox']").not("#CheckBox_all").click(function() {
$(
"#CheckBox_all").attr('checked', $("input[type='checkbox']").not("#CheckBox_all").length == $("input:checked").not("#CheckBox_all").length);
});
});
</script>

 

相关文章:

  • 2022-01-02
  • 2022-01-15
  • 2021-12-29
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-27
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-01-24
相关资源
相似解决方案