jQuery check/uncheck radio button onclick

前端 未结 24 2762
滥情空心
滥情空心 2020-12-01 05:23

I have this code to check/uncheck a radio button onclick.

I know it is not good for the UI, but I need this.

$(\'#radioinstant\').click(function() {          


        
24条回答
  •  情话喂你
    2020-12-01 05:47

    If you're still up for more answers i have found that this works with all radio buttons:

    
    

提交回复
热议问题