This article mainly introduces the basic usage of jqueryvalidate form verification. The jQueryValidate plug-in provides powerful form verification functions to simplify form verification on the client, at the same time, a large number of customization options are provided to meet various application needs. For more information, see
1. jQuery Validate plug-in Introduction
The jQuery Validate plug-in provides powerful form verification functions to simplify form verification on the client side. It also provides a large number of custom options to meet various application needs. This plug-in is bundled with a set of useful verification methods, including URL and email verification, and provides an API for Writing user-defined methods. All bundling methods use English as the error message by default and have been translated into 37 other languages.
This plug-in was compiled and maintained by J örn Zaefferer. He is a member of the jQuery team, the main developer of the jQuery UI team, and the maintenance personnel of QUnit.
- Official Website:Http://bassistance.de/jquery-plugins/jquery-plugin-validation/
- Online Documentation:Http://docs.jquery.com/Plugins/Validation
- Online API:Http://jquery.bassistance.de/api-browser/plugins.html
II. Introduction to features of jQuery Validate
JQuery Validate has the following features:
(1) built-in verification rules;
Powerful jQuery Form Verification plug-in, suitable for daily E-mail, phone number, URL verification and Ajax verification, in addition to its own rich verification rules, you can also add custom verification rules.
Compatible with IE 6 +, Chrome, Firefox, Safari, and Opera 10 +
(2) custom verification rules;
(3) simple and powerful information tips.
(4) Real-time verification: the verification is triggered through the keyup or blur event, not only when the verification is submitted.
Iii. Simple example to learn jQuery Validate
The prerequisites for these examples are to introduce the jQuery library and Validation plug-in.