## PristineJS - Form Validation

- PristineJS - Vanilla javascript form validation micro-library
- form1-pristine.html

    document.addEventListener("DOMContentLoaded",function(){
           let form = document.getElementById("myForm");
           let pristine = new Pristine(form);
           form.addEventListener('submit', function (e) {
              let valid = pristine.validate();
              if (valid) {
                return true;
              } else {
                e.preventDefault();
              }
           });
         })