1 $('[name=roomcheck]').each(function(){
2             if($(this).prop("checked")==true){
3                 alert(this.id);//选中的id
4                 alert($("table input:checkbox").index(this));//checkbox选中的行数
5             }
6         });

 

相关文章:

  • 2022-12-23
  • 2021-11-07
  • 2022-01-11
  • 2022-01-22
  • 2022-01-13
  • 2021-08-14
  • 2021-06-16
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案