Deep learning jquery Validate form Validation (ii) _jquery

Source: Internet
Author: User
Tags curl jquery form validation

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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.