<link rel="stylesheet" type="text/css" href="${ctx}/static/framework/plugins/jquery-plugins/validate/jquery.validate.min.css">
<script type="text/javascript" src="${ctx}/static/framework/plugins/jquery-plugins/validate/jquery.validate.min.js">
</script>
<form action="" method="post" id="form1"><td class="tdOne">
<table>
<tr>
<td>
<div class="td-div-bt required">调解民警:</div>
<input type="text" id="tjmj" name="tjmj" class="required" /> //这个required样式是重点
</td>
</tr>
</table>
</form>
if(!$("#form1").valid()){
return false;
}
//需要的js博客没法上传我只能放网盘了
链接: https://pan.baidu.com/s/1g03m817ZC8hY3QOUefyMIQ 提取码: yvtq