jquery判断复选框是否被选中

$(function(){
 $(document).on("click", ".checkbox",function(){
        var bool=$(".checkbox").is(":checked") ? !0 : !1;
        if(bool){
            $(this).after('选中')
        }
    })
})

 

相关文章:

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