Checking and unchecking radio buttons with Jquery Mobile

后端 未结 5 1360
说谎
说谎 2021-01-02 09:03

I can\'t check a set of checkboxes programatically with jquery mobile, I have the following code:

5条回答
  •  别那么骄傲
    2021-01-02 09:51

    They all work just fine. You just need to trigger refresh on all input radio in group.

    $("input[type='radio']:first").attr("checked", "checked");
    $("input[type='radio']").checkboxradio("refresh");
    

    jsFiddle is here.

提交回复
热议问题