click or change event on radio using jquery

后端 未结 5 1600
挽巷
挽巷 2021-02-06 19:49

I have some radios in my page,and I want to do something when the checked radio changes,however the code does not work in IE:

$(\'input:radio\').change(...);
         


        
5条回答
  •  悲&欢浪女
    2021-02-06 20:36

    You can specify the name attribute as below:

    $( 'input[name="testGroup"]:radio' ).change(
    

提交回复
热议问题