1、判断checkbox是否为选中状态:

if($("#searchNews").attr("checked")=="checked") {

    ...

}

2、设置checkbox为选中状态

$("#searchNews").attr("checked","true");

 

 

相关文章:

  • 2021-10-08
  • 2021-07-04
  • 2021-12-06
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-02-01
  • 2022-02-22
  • 2022-01-06
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案