一个时:document.all.radioID.checked
多个时:document.all.radioID[index].checked

解决方案 »

  1.   

    正如楼上说的拉,它返回的是布尔值,如果单选框被选中,返回true,因此,你只需要进行条件判断就可以了啊!
      

  2.   

    <form method="POST" action="--WEBBOT-SELF--">
      <input type="radio" value="1" checked name="R1">
      <input type="radio" name="R1" value="2">
      <input type="radio" name="R1" value="3">
      <input type="button" value="提交" name="B1" onclick="showch()"></p>
    </form>
    <script>
    function showch()
    {
    for(var i=0;i<document.all.R1.length;i++)
    {
    if(document.all.R1[i].checked)
    alert(document.all.R1[i].value);
    }
    }
    </script>