Example of the Validation application of the form verification plug-in _ jquery

Source: Internet
Author: User
This article describes examples of the form verification plug-in Validation application. For more information, see jquery. validation is an excellent jquery plug-in that can verify client forms and provides many customizable attributes and methods for good scalability. Now, based on the actual situation, I organize the verification frequently used in the project into an instance DEMO. This article explains this instance to understand the application of Validation.

Verification involved in this instance includes:
Username: length, character verification, and repeated ajax verification (whether the user exists ).
Password: length verification. repeat the password verification.
Email: verify the email address.
Landline phone: Chinese mainland landline phone number verification.
Mobile phone number: Mainland China mobile phone number verification.
URL: verify the website URL.
Date: standard date format verification.
Number: integer, positive integer verification, number range verification.
ID card: Chinese mainland ID card number verification.
Zip code: Mainland China Zip code verification.
File: file type (suffix) verification. for example, only images can be uploaded.
IP address: verify the IP address.
Verification code: ajax verification code.
Usage:
1. prepare the jquery and jquery. validate plug-ins.

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.