<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/web.tld" prefix="web"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加xx</title>
<web:jquery validate="true" formId="tableform" />
<link type="text/css" rel="stylesheet" href="styles/css.css">
<script language="javascript" type="text/javascript" src="scripts/DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="scripts/Globals.js"></script>//表单验证js<script src="scripts/DhtmlTree/js/dhtmlxcommon.js"></script>
<script src="scripts/DhtmlTree/js/dhtmlxtree.js"></script>
<link type="text/css" rel="stylesheet" href="scripts/DhtmlTree/css/dhtmlxtree.css">
</head>
<body>
<form action="" method="POST" id="tableform" name="tableform">
<web:error />
<web:tableTitle name="添加xx" />
<s:hidden name="driverVO.dept.deptid" id="deptid" />
<div class="table_border">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hs">
<tr>
<td><span>xx基本信息:</span></td>
</tr>
<tr>
<web:textEditor name="driverVO.dept.deptname" id="deptname" label="xx单位" validate="required:true" />
<web:textEditor name="driverVO.driver.drivername" label="姓名" validate="maxlength:20,required:true" />
</tr>
<tr>
<web:selectEditor name="driverVO.driver.gender" title='gender' label="性别" validate="maxlength:20,required:true" />
<web:textEditor name="driverVO.driver.mz" label="民族" validate="maxlength:20,required:true" />
</tr>
<tr>
<web:textEditor name="driverVO.brithday" id="brithday" label="出生年月" validate="required:true" />
<web:textEditor name="driverVO.driver.lic_no" label="身份证号" validate="maxlength:32,required:true" />
</tr>
<tr>
<web:textEditor name="driverVO.driver.phone" label="联系电话" validate="number:true,maxlength:20,required:true" />
详细解决方案
js如何验证身份证号
热度:51 发布时间:2016-04-21 22:22:26.0