<script language="JavaScript">
function checkForm()
{
for(i=0;i<document.form1.age.length;i++)if(document.form1.age[i].checked){return true;break;}
alert("请选择年龄");
document.form1.age[0].focus();
return false;
}
</script>
function checkForm()
{
for(i=0;i<document.form1.age.length;i++)if(document.form1.age[i].checked){return true;break;}
alert("请选择年龄");
document.form1.age[0].focus();
return false;
}
</script>
应该改为
if (!document.form1.age.checked)
湿文的不能返回阿,hoho