How to check a radio button with jQuery?

前端 未结 30 2476
独厮守ぢ
独厮守ぢ 2020-11-22 08:12

I try to check a radio button with jQuery. Here\'s my code:

30条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 08:49

    Yes, it worked for me like a way:

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

提交回复
热议问题