This article introduces the jquery validate form verification, sharing for everyone's reference, the specific contents are as follows
One, add a different plug-in jquery.validate.messages_cn.js.
Change the default prompt.
* * 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 fields",
remote: "Please fix this field",
email: "Please enter the correct format email",
URL: " Please enter a valid URL, date: "Please enter a valid date"
,
dateiso: "Please enter a valid date (ISO).",
Number: "Please enter the valid numbers",
digits: "Only integers",
creditcard: "Please enter a valid credit card number",
equalto: "Please enter the same value again",
Accept: "Please enter a string with a valid suffix name",
maxlength: Jquery.format ("Please enter a string with a maximum length of {0}"),
Minlength:jQuery.format ("Enter a string with a length of at least {0}"),
rangelength: Jquery.format ("Please enter a string between {0} and {1}"),
Range:jQuery.format ("Enter a value between {0} and {1}"),
Max: Jquery.format (Please enter a value of {0}),
Min:jQuery.format ("Enter a value of min {0}")
});
Two, the jquery form validation plug-in ----validated by associating fields with the Name property, officers transferred Guevara rules are written to the JS code.
That's all that's in this article and I want to help you learn about jquery validate form validation.