Validate is a good jq plug-in that provides powerful verification functions to simplify form verification on the client. 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. Validate is a good jq plug-in that provides powerful verification functions to simplify form verification on the client. 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.
The most common use of JavaScript is form verification. jQuery, as an excellent JavaScript library, also provides an excellent form verification plug-in-Validation. Validation is one of the oldest jQuery plug-ins. It has been verified by different projects around the world and has been well received by many Web developers. As a standard Validation repository, Validation has the following features:
1. built-in verification rules: there are 19 built-in verification rules, including mandatory, number, Email, URL, and credit card number.
2. Custom verification rules: You can easily customize verification rules.
3. Simple and powerful verification information prompt: The verification information prompt is displayed by default, and you can customize to overwrite the default prompt information.
4. Real-time verification: verification may be triggered by keyup or blur events, not just when the form is submitted.
Validate. js: http://plugins.jquery.com/project/validate
Metadata. js: http://plugins.jquery.com/project/metadatause metadata:
1. Introduce the jQuery library and Validation plug-in
The Code is as follows: