Set radio button checked with AJAX response

后端 未结 2 2015
[愿得一人]
[愿得一人] 2020-12-18 15:39

I need to set a radio button in my form; it has to be checked with the values coming from an AJAX response.

My AJAX response is response.drive. \"Manua

2条回答
  •  醉话见心
    2020-12-18 15:50

    You can give an id to each radiobutton and then:

    $("#drive_1").attr('checked', 'checked');
    

提交回复
热议问题