问一个关于javascript的问题?
<input type= "radio " name= "ism " value= "1 " checked onclick= "isassociator() "/>
注册会员
<input type= "radio " name= "ism " value= "0 " onClick= "notassociator() "/>
非注册会员
如何取得被选中的单选框的值?
------解决方案--------------------var rdo = document.getElementsByName( "ism ");
for(i=0;i <rdo.length;i++)
if(rdo[i].checked) break;
alert(rdo[i].value);