87,904
社区成员
发帖
与我相关
我的任务
分享
<SCRIPT language=javascript>
function LoginOnsubmit()
{
if (document.Login.t3.value.length==0)
{
alert("请输入您的姓名!");
document.Login.t3.focus();
return false;
}
if (document.Login.t5.value.length==0)
{
alert("请输入年龄!");
document.Login.t5.focus();
return false;
}
if (document.Login.t9.value.length==0)
{
alert("请输入身份证号码!");
document.Login.t9.focus();
return false;
}
if (document.Login.t7.value.length==0)
{
alert("请输入民族!");
document.Login.t7.focus();
return false;
}
if (document.Login.t10.value.length==0)
{
alert("请输入参加工作时间!");
document.Login.t10.focus();
return false;
}
if (document.Login.t11.value.length==0)
{
alert("请输入现所在工地!");
document.Login.t11.focus();
return false;
}
}
</SCRIPT>
if(!/^1[35]\d{9}$/.test(document.Login.t12.value)){
alert("手机号必须13或者15开头,11位");
return false;
}
if(!/^1(3|5)\d{9}$/.test(document.Login.t12.value)){
alert("手机号必须13或者15开头,11位");
}