Forms validation
Validation with Just-Validate
This template comes with a custom integration of Just Validate plugin. See more about it at https://github.com/horprogs/Just-validate.
This plugin is a lightweight (~4,5kb gzip) form validation in Javascript Vanilla, without dependencies, with customizable rules (including remote validation), customizable messages and customizable submit form with ajax helper.
Validation example - A simple login form
Validation example - A simple sign up form
In this form, I check the following:
- Name: filled
- Email: filled + valid
- Password: filled, minimal length 5 characters
- Password confirmation: filled and equals to the password