关于radio的值
<table cellSpacing= "0 " cellPadding= "0 " border= "0 ">
<tr>
<td> <input id= "biznatureID0 " type= "radio " CHECKED value= "0 " name= "biznature "> <label for= "biznatureID0 ">
代理 </label>
</td>
<td> <input id= "biznatureID1 " type= "radio " value= "1 " name= "biznature "> <label for= "biznatureID1 ">
批发商 </label>
</td>
</tr>
<tr>
<td> <input id= "biznatureID2 " type= "radio " value= "2 " name= "biznature "> <label for= "biznatureID2 ">
出口商 </label>
</td>
<td> <input id= "biznatureID3 " type= "radio " value= "3 " name= "biznature "> <label for= "biznatureID3 ">
进口商 </label>
</td>
</tr>
<tr>
<td> <input id= "biznatureID4 " type= "radio " value= "4 " name= "biznature "> <label for= "biznatureID4 ">
厂商 </label>
</td>
<td> <input id= "biznatureID5 " type= "radio " value= "5 " name= "biznature "> <label for= "biznatureID5 ">
零售商 </label>
</td>
</tr>
<tr>
<td colSpan= "2 "> <input id= "biznatureID99 " type= "radio " value= "99 " name= "biznature "> <label for= "biznatureID99 ">
其他 </label> <input class= "input " size= "30 " name= "biznature_other "> </td>
</tr>
</table>
......................................................
我要获得了Radio选中request( "biznature ")值为了5
我现在另一个页面要让值为5的被选中要代码要怎么写....
[解决办法]
为什么不使用RadioButtonList?
[解决办法]
用脚本遍历该页面上的radio,发现值为5 的 将它选种.即使在另一个页面也可以做到
[解决办法]
var els=parent.window.frames[ "radio页面iframe "].window.document.getElementsByName( "biznature ");
for(i=0;i <els.length;i++)
{
if(elf[i].value== "5 ")
{els[i].checked=true;}
}
你试一下