Validation is a jQuery plug-in. The methods provided can greatly simplify the work of validating forms, and the functions are sufficient for general needs. The rules are simple enough and easy to use. As a simple example, use validation to verify the registration form.
First determine the verification goals:
1. Required fields cannot be empty
2. Registered username must be within 6-12 characters
3. Qualified email format
4. The password must be 6-18 characters
5. The confirmation password must be consistent with the password
ok, the goal is very clear. The main movie starts