Skip to content

qFormValidate is a simple drop-in format validation library that tries to ensure the user enters the correct type of values for each form field to prevent any frustration.

Notifications You must be signed in to change notification settings

stewartorr/qFormValidate

Repository files navigation

qFormValidate

Intro

qFormValidate is a simple javascript form validation script that can be dropped into your form pages which adds simple validation and input checks straight out of the box. It can also be configured to do custom validation on more complicated fields.

Documentation

[More documentation coming soon]

You can integrate this into your own project using export or a simple include on the page.

  <script type="module">
    import { qFormValidate } from './dist/index.js';

    const form = document.getElementById('myForm');
    qFormValidate(form, {
      onBeforeValidate: () => console.log('Validating...'),
      onAfterValidate: () => console.log('Done validating!'),
      onFieldSuccess: (field) => console.log(field, 'VALID')
    });
  </script>

Try it

Demo

About

qFormValidate is a simple drop-in format validation library that tries to ensure the user enters the correct type of values for each form field to prevent any frustration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published