How to reset radiobuttons in jQuery so that none is checked

后端 未结 13 772
一个人的身影
一个人的身影 2020-11-29 16:35

I have radio buttons in HTML like this:


    1
    

        
13条回答
  •  無奈伤痛
    2020-11-29 17:24

    Your problem is that the attribute selector doesn't start with a @.

    Try this:

    $('input[name="correctAnswer"]').attr('checked', false);
    

提交回复
热议问题