且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

javascript jquery单选按钮单击

更新时间:2023-09-29 18:52:22

你可以使用 .change 为你想要的东西

You can use .change for what you want

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

自jQuery 1.3起

你不再需要'@'。正确的选择方式是:

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

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