<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function checkForm(){
if(document.register.jieshaor.value=="")
{
alert("介绍人编号不能为空!");
return false;
}
return true;
}
</script>
<title></title>
</head>
<body>
<form name="register" method="post" onsubmit="return checkForm()">
<table>
<tr>
<td >介绍人编号</td>
<td ><input type="text" name="jieshaor" ></td>
</tr>
</tr>
<tr>
<td >
<input type="submit" value="
提交">
</td>
</tr>
</table>
</form>
</body>
</html>
这些箭头指示的名称要对应相同