Pristine
Pristine copied to clipboard
Vanilla javascript form validation micro-library
Pristine block the request of my form ``` Créer un compte ``` ``` window.onload = function () { var form = document.getElementById("form1"); var pristine = new Pristine(form); form.addEventListener('submit', function (e)...
Hello! The code downloaded when installing via npm does not to match the code in the master branch. It lacks the `setLocale` and `addMessages` methods on the `Pristine` constructor. Looks...
Maybe I am missing something, but if I try to get all errors for all input, sometime field has not property `errors`. Before checking `field.errors.length` I add a check if...
**Improve in `_showError`** 1. Generate dinamic id to `errorTextElement` from `field.input` by id. 2. Set in `field.input`, `aria-describedby` attribute with id error value. 3. Set in `field.input`, `aria-valid` attribute with...
Is it be possible to programmatically define a default message for one of the built-in validators, such as `required`? That is, rather than defaulting to `This field is required`, can...
The process of editing the field (the 'input' event) will activate the field for validation, and then the blur event does the actual validation. This means that clicking into (or...
I just copy the code and replace the form id with my form id. But the valid variable always returns true. It's doesn't return any error or anything. // pristine...
This would be nice to be able to localize, or change, default errors message. Maybe though the defaultConfig parameter ? Thanks.
Hi, how can I prevent whitespace on input required? https://stackoverflow.com/questions/13766015/is-it-possible-to-configure-a-required-field-to-ignore-white-space
Any plans (or willing to take a PR for ES6 Import support so it's easier to use with compiled projects?