这是我的代码
<input type="radio" id="allIB"style="vertical-align:middle;height:10px;width:15px;top:10px;" name="selMethodCode" value="" onClick="selInterface(this.id);enableSave1(this.id)">
<input type="radio" id="allOB" style="vertical-align:middle;height:10px;width:15px;top:10px;" name="selMethodCode" value="" onClick="selInterface(this.id);enableSave1(this.id)">
function enableSave1(id)
{
abc=id;
if(document.getElementById('abc').checked)
{
alert('done');
}
}
这不能正常工作并引发错误(需要对象......)