Adding Form Validation
We have one last major feature to add to our form, validation. Form validation is a set of checks that evaluates users' provided value.
There are 2 types of validation:
- Client-side validation
- Ensure required fields have values.
- Prevent invalid values.
- Provide timely feedback.
- Server-side validation
- Mirroring client-side validation.
- Complex validation rules.
- Validate against values from a database or API
Today, we will learn 2 examples of delivering message validation.