我想要的是:
if(document.forms[0].elements[0][1].checked)
或者
if(document.forms[0].elements[0].[1].checked)
有效的是:
if(document.forms[0].rad[1].checked)
鉴于:
<h3>Who's Bill?</h3>
<input type="radio" value="0" name="rad">Bill Clinton
<input type="radio" value="1" name="rad">Bill Gates