因为bootstrap插件问题,需要先获取input的上级元素,然后添加checked
$("input[name='checkInput']").parent().addClass('checked');
$("input[name='checkInput']").prop("checked",true);
 
$("input[name='checkInput']").parent().removeClass();
$("input[name='checkInput']").prop("checked",false);
 

相关文章:

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