I have reprinted an article written by my predecessors and modified it for record only.First paste the code of a major Chinese company:Copy codeThe Code is as follows: I started from this example. In fact, this example almost contains the essence of
JQuery. Validate verification Library1. Download jquery. validate, here I provide jquery-validation-1.9.0, click to download
Default verification rules
Copy codeThe Code is as follows: (1) required: true mandatory field
(2) remote: "check. php" uses
Default verification rules(1) required: required field for true
(2) Remote: "check. php" uses ajax to call check. php to verify the input value.
(3) Email: true: You must enter an email in the correct format.
(4) URL: True must enter the URL in the
I. PreparationsJQuery version: 1.2.6 +, compatible with 1.3.2
Official website address: http://jqueryvalidation.org/
Ii. Default verification rules(1) required: required field for true(2) remote: "check. php" uses ajax to call check. php to verify
Jquery.validate Authentication Library
First, use before the necessaryOfficial website: http://bassistance.de/jquery-plugins/jquery-plugin-validation/Api:http://jquery.bassistance.de/api-browser/plugins.htmlCurrent version: 1.5.5jquery version
This article introduces the jquery Validate form Verification plug-in, add Class attribute form of verification, share for everyone to reference, the specific content as followsThe effect is as follows:
First, jquery form verification plug-in,
Jquery. Validate. js Form validation this article is transferred from: http://hi.baidu.com/greenandcoffee/blog/item/5ebe5850e2cfbb551138c24d.html
I. PrerequisitesHttp://bassistance.de/jquery-plugins/jquery-plugin-validation/API:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.