码上敲享录 > jsp开发经验分享 > input checkbox选中和取消选中事件

input checkbox选中和取消选中事件

上一章章节目录下一章 2019-10-13已有14176人阅读 评论(0)

input checkbox复选框实现选中和取消选中的事件


html

<input type="checkbox" class="barcodeSavePrint" />


js

$(function () {

   $(".barcodeSavePrint").click(function () {

       if (this.checked==true){

           alert("选中");

       }else{

           alert("不选中");

       }

   })

})





向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
9

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交