jQuery set radio button

前端 未结 12 2014
执笔经年
执笔经年 2020-12-02 11:12

I am trying to set a radio button. I want set it by using the value or the id.

This is what I\'ve tried.

$(\'input:radio[name=cols]\'+\" #\"+newcol).         


        
12条回答
  •  醉梦人生
    2020-12-02 11:39

    Combining previous answers:

    $('input[name="cols"]').filter("[value='Site']").click();
    

提交回复
热议问题