<TABLE id=rbl_bOwn style="DISPLAY: none; POSITION: absolute" disabled border=0>
<TBODY>
<TR>
<TD><INPUT id=rbl_bOwn_0 type=radio value=True name=rbl_bOwn><LABEL for=rbl_bOwn_0>是</LABEL></TD>
<TD><INPUT id=rbl_bOwn_1 type=radio CHECKED value=False name=rbl_bOwn><LABEL for=rbl_bOwn_1>否</LABEL></TD></TR>
</TBODY>
</TABLE><INPUT type="button" value="Button" id=button1 name=button1 onclick="test()">
<SCRIPT LANGUAGE=javascript>
<!--
function test(){
var o=document.getElementById("rbl_bOwn");
o.disabled=false;
o.style.display="";
o.style.backgroundColor="#ffff00";
}
//-->
</SCRIPT>

解决方案 »

  1.   

    id最好不要设置成相同,如果你坚持要这样做,也还是可以通过程序访问的<input id="gorush" value="text1">
    <input id="gorush" value="text2"><button onclick=document.all.gorush[0].style.color='red'>第一个</button>
    <button onclick=document.all.gorush[1].style.color='blue'>第二个</button>
      

  2.   

    看错题目了,不过如果是 id和name相同的话,一样可以这样做<input id="gorush" value="text1">
    <input name="gorush" value="text2"><button onclick=document.all.gorush[0].style.color='red'>第一个</button>
    <button onclick=document.all.gorush[1].style.color='blue'>第二个</button>