@jdlien/Validator

Easy, Powerful Form Validation

Validator help sanitize and validate input into this form. This form won't submit if any fields are invalid. Instead, helpful errors will be shown or hidden as the user changes fields.

With scrollToError: true, the page will scroll to the first error on submit.

Install Validator through npm or pnpm:
npm install @jdlien/validator

Source code and documentation at github.com/jdlien/validator.

If the form is invalid when submitted, the form-error-main div will be displayed above.