一、验证函数:
<script language="javascript">
function check()
{
if (document.form1.gys.value=="")
{
alert("供应商名称不能为空");
return false;
}
if (document.form1.ckmc.value=="")
{
alert("仓库名称不能为空");
return false;
}
}
</script>
二、FORM标签:
<form name="form1" method="post" οnsubmit="return check();" >
三、input标签:
<input type="text" id="gys" name="gys" style="width:150px" value="">
<input type="text" id="ckmc" name="ckmc" style="width:80px" value="">