jquery 1.9

 

checkbox 是否选中

if($("#chk_selectedall").prop('checked'))

 

checkbox 选中

$("#chk_selectedall").prop('checked',true)

 

checkbox 取消选中

$("#chk_selectedall").prop('checked',false)

 

 

checkbox 反选

$("#chk_selectedall").click(function () {
$("[id^='chk_selected']").prop('checked', $("#chk_selectedall").prop('checked'));
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-11-02
  • 2022-12-23
猜你喜欢
  • 2021-09-15
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-05-27
相关资源
相似解决方案