checkbox全选,反选,取消选择 jquery。

//checkbox全部选择
$(":checkbox[name='osfipin']").each(function(){
	$(this).attr("checked",true);
});

//checkbox取消全选
$(":checkbox[name='osfipin']").each(function(){
	$(this).attr("checked",false);
});

//checkbox反选
$(":checkbox[name='osfipin']").each(function(){
	$(this).attr("checked",!this.checked);
});

//from http://www.cnblogs.com/osfipin/

//

  配合jquery使用的代码

相关文章:

  • 2022-01-02
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-11-28
  • 2021-05-10
猜你喜欢
  • 2022-01-25
  • 2022-01-24
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案