Common forms validation Plug-in

Source: Internet
Author: User
Plugin Address: Https://github.com/gavin125/gavin-Vtype

Matches the format of the input in a regular fashion

Divided into two versions:

1. Vtypejs.js is native JS version
2, vtype.js for jquery plugin

The validation effect is:

1, get the focus when prompted, lose focus when the judgment results (password strength for the keyboard input real-time judgment)

The form items and rules that involve validation are as follows:

1. User name: 5-15 characters with letters, numbers, and underscores starting with letters
2. Password: 6-18 characters consisting of letters, numbers and special symbols (more than 8 bits are in, more than 10 bits are strong)
3, mobile phone Number: 1 start, 3578 connection number, total 11 bit
4. Email: alphanumeric underline [email protected]+ alphanumeric underline +.+ alphanumeric underline
5. ID Card: 18 digits or 15 digits or 17 digits plus X
6. Bank card: 16 or 19 digits

Common forms validation Plug-in

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.