我有很多这样的输入域
<input type="radio" name="name" id="name" onchange="enableTxt()" />
当我点击这个单选按钮时,我想要捕获无线输入的id。我正在使用下面的代码
function enableTxt() {
var id = $(this).attr("id");
alert(id);
}
我得到了这个错误
a.attributes is undefined
https://stackoverflow.com/questions/4384829
复制相似问题