How can I simulate a click on a jQuery UI radio button?

后端 未结 3 1773
花落未央
花落未央 2021-02-19 23:27

I have some radio buttons

&l
3条回答
  •  时光取名叫无心
    2021-02-20 00:23

    You have to do it with the label element added by jQuery UI. Try:

    $("label[for='character_chartype_"+data.chartype+"']").click();
    

    Have a look at it here, in a controlled environment: http://jsfiddle.net/B3d4z/

提交回复
热议问题