Releases: Bien-Glitch/fusion.jquery.form.validator
Releases · Bien-Glitch/fusion.jquery.form.validator
Update
- Code cleanup for better performance.
- Added new function for form error check -
hasErrors()
- Added Error count per form:
- Form can now be checked if error exists and form submission prevented using the
hasErrors()
function.
- Form can now be checked if error exists and form submission prevented using the
Bug fixes and Update
Bug fixes:
- Validator can now be initialised on different instances.
- Configuration can now be set separately for each instance.
Update:
- Deprecated 'form.validation.js'.
- Refactored to ES6 format for better performance.
Refactored previous code, files, and folder structure
Refactored previous code:
- From 'form.validation.js' to 'fusion.form.validator.js'.
- Form field validation data key
changed fromdata-is-validated
todata-fb-validate
.
New features:
- You can now check current version of validator (Log it into browser console);
- Validator can now be instantiated uniquely or globally for all forms;
- Optional configurations for validator added.
- Added Email and Phone number.
- Validation (Can be configured).
Update and bug fixes
- Added clear validation function.
- Corrected bug when displaying validation for select elements.
- Made improvements.
Initial release
- Validation for required empty form fields.
- Show errors for inputs with
minlength
andmaxlength
attributes. - Password field validation for confirm password:
(N.B password field id must be "password" and password confirm field must be "password_confirmation")
i.e.<input type="password" id="password">
and<input type="password" id="password_confirmation">
- Option for floating label.
- 'optional' text for optional fields when using floating label.