Home > Web Front-end > JS Tutorial > jquery implements form validation function code (concise)_jquery

jquery implements form validation function code (concise)_jquery

WBOY
Release: 2016-05-16 17:52:12
Original
949 people have browsed it

1. Page effect, automatically prompt verification information...
jquery implements form validation function code (concise)_jquery
2. Page code

Copy codeThe code is as follows:



表单验证页面










 






































登录名: 真实姓名:
登录密码: Email:
身份证号: QQ:
手机: 电话:
邮编:id="txtZIP" name="txtZIP" type="text" class="txt03" /> 年龄:
id="txtZIP0" name="txtZIP0" type="text" class="txt03" />
备注:
style="width:41%; height: 74px;" class="txt03" id="txtRemark">
   
text
missingMessage="当文本框是空时出现的提示文字。" invalidMessage="当文本框的内容无效时出现的提示文字" required="true" validType="minLength[5]" />
文本框比对:
2 



               
 





Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template