<script language="javascript">
function mycheck(){
if(form1.xingming.value == "")
{alert("请输入姓名!");form1.xingming.focus();return;}
if(form1.idcard.value == "")
{alert("请输入身份证号!");form1.idcard.focus();return;}
if(form1.phone.value == "")
{alert("请输入联系电话!");form1.phone.focus();return;}
if(this.person[1].checked ==true)
{alert("请选择联系电话!");}
form1.submit();
}
</script>(注解:单选按钮<% input type="radio" name="person" value="1"%>)
老大帮我看看这个代码,怎么老不行啊?好像没什么问题吧?!我都急晕了,拜托!
[此贴子已经被作者于2006-12-26 18:17:51编辑过]