日期:2014-05-16  浏览次数:20367 次

求为这个表单写个js验证码!!!必填项就行
<TABLE border=0 cellSpacing=1 cellPadding=3 width="100%">
<FORM onsubmit="return check_jl(this);" method="post" action="Submit.php">
<TBODY >
<TR>
<TD height=30 width="18%" align=right>
申请职位:
</TD>
<TD>
<INPUT id=t0 class=ip maxLength=40 size=30 type=text name="job.employment">
<SPAN style="color: red">*</SPAN>
</TD>
</TR>
<TR>
<TD height=30 align=right>
姓名:
</TD>
<TD>
<INPUT id=t1 class=ip maxLength=40 size=30 type=text name="job.userName">
<SPAN style="color: red">*</SPAN>
</TD>
</TR>
<TR>
<TD height=30 align=right>
性别:
</TD>
<TD>
<div name="form">
<INPUT id=t2_1 value="m" type=radio name="job.gender" >
<LABEL for=t2_1>

</LABEL>
<INPUT id=t2_2 value="f" type=radio name="job.gender">
<LABEL for=t2_2>

<SPAN style="color: red">*</SPAN>
</LABEL>
</div>
</TD>
</TR>
<TR>
<TD height=30 align=right>
年龄:
</TD>
<TD>
<INPUT onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''));"
id=t3 class=ip onkeyup="value=value.replace(/[^\d]/g,'');"
maxLength=2 size=30 type=text name="job.age">
<SPAN style="color: red">*</SPAN>
</TD>
</TR>
<TR>
<TD height=30 align=right>
婚姻状况:
</TD>
<TD>
<INPUT id=t4_1 value="yes" type=radio name="job.marriage">
<LABEL for=t4_1>
已婚
</LABEL>
<INPUT id=t4_2 value="no" type=radio name="job.marriage">
<LABEL for=t4_2>
未婚
<SPAN style="color: red">*</SPAN>
</LABEL>
</TD>
</TR>
<TR>
<TD height=30 align=right>
电话/手机:
</TD>
<TD>
<INPUT id=t2 class=ip maxLength=40 size=30 type=text name="job.phone">
<SPAN style="color: red">*</SPAN>
</TD>
</TR>
<TR>
<TD height=30 align=right>
地址:
</TD>
<TD>
<INPUT id=t4 class=ip maxLength=50 size=30 type=text name="job.address">
</TD>
</TR>
<TR>
<TD height=30 align=right>
学历:
</TD>
<TD>
<SELECT id=t7 name="job.degree">
<OPTION selected>
请选择学历
</OPTION>
<OPTION value=1>
大专
</OPTION>
<OPTION value=2>
本科
</OPTION>
<OPTION value=3>