In-depth learning about jQuery Validate form verification (2), jqueryvalidate
This article introduces jQuery Validate Form Verification for your reference. The details are as follows:
1. Add another plug-in jquery. validate. messages_cn.js.
Change the default prompt mode.
/** Translated default messages for the jQuery validation plugin. * Language: CN * Author: Fayland Lam <fayland at gmail dot com> */jQuery. extend (jQuery. validator. messages, {required: "required field", remote: "correct this field", email: "enter an email in the correct format", url: "enter a valid URL", date: "enter a valid date", dateISO: "enter a valid date (ISO ). ", number:" enter a valid number ", digits:" Only an integer can be entered ", creditcard:" enter a valid credit card number ", please: "Enter the same value again", accept: "enter a string with a valid suffix", maxlength: jQuery. format ("enter a string with a maximum length of {0}"), minlength: jQuery. format ("enter a string with at least {0} length"), rangelength: jQuery. format ("enter a string between {0} and {1}"), range: jQuery. format ("enter a value between {0} and {1}"), max: jQuery. format ("enter a maximum value of {0}"), min: jQuery. format ("enter a minimum value of {0 ")});
Ii. jQuery Form Verification plug-in---- Use the name attribute to associate fields for verification and write validation rules to js Code.
<Html>
The above is all of the content in this article. I hope it will help you learn jQuery Validate form verification.
Articles you may be interested in:
- Getting started with jquery validate. js Form Verification
- JQuery. Validate usage notes (jQuery Validation example)
- Jquery. validate
- Step 4 of jquery validate Introduction
- JQuery validate Chinese API attached validate. js Chinese api Manual
- JQuery EasyUI API Chinese Document-ValidateBox verification box
- Usage of jQuery. Validate verification Library
- Form Verification Based on Bootstrap + jQuery. validate