请问大虾如何用脚本读出radio表单的内容。
如
1<form name="frmA">
2<input name="a" type="radio" value="1"/>
3<input name="b" type="radio" value="2"/>
4<input name="c" type="radio" value="3"/>
5</form>
怎样用脚本读出来选中的值呢,急!!!!先谢谢了
---------------------------------------------------------------
var iptR=document.all.tags("input")
for (i=0;i<iptR.length;i++){
if (iptR(i).checked)
alert("选中")
else
alert("未选中")
}