javascript jquery radio button click

前端 未结 6 1186
刺人心
刺人心 2020-12-04 20:23

I have 2 radio buttons and jquery running.

 first


        
6条回答
  •  既然无缘
    2020-12-04 21:15

    You can use .change for what you want

    $("input[@name='lom']").change(function(){
        // Do something interesting here
    });
    

    as of jQuery 1.3

    you no longer need the '@'. Correct way to select is:

    $("input[name='lom']")
    

提交回复
热议问题