How to check “checkbox” dynamically - jQuery Mobile

前端 未结 3 890
一个人的身影
一个人的身影 2020-11-27 07:33

With HTML a checkbox is created like this:

Category1
<
3条回答
  •  独厮守ぢ
    2020-11-27 08:01

    Straight from the jQ Mobile docs:

    $("input[type='checkbox']").attr("checked",true);
    

提交回复
热议问题