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