jq勾选

1、取消勾选

$("box").attr("checked", false);

2、勾选
$("kbox").attr("checked", true);

  判断勾选

 

 if ($('#hotCarsThree').prop("checked") == true) {
      //勾选了
    }

  

posted @ 2019-09-12 14:31  前端邢晋宇  阅读(253)  评论(0)    收藏  举报