Every developer knows how complex and tricky form validation can be. Ideally, users fill in the form with necessary information and finish the job successfully. However, people often make mistakes. This is where form validation comes into play. So in this post I’ve gathered some useful Javascript library that you can use to set up a form validation for your projects.
Parsley.js
Like no other form validation library, simply write in English your requirements inside your form HTML tags, Parsley will do the rest! No need to write even a single JavaScript line for simple form validation.
Validator.js
This library validates and sanitizes strings only.
Form Wizard
Using your form validation can quickly become cumbersome and annoying, however, especially when the number of inputs in the form increase, or the form structure gets more complicated e.g. multi-step forms. Thankfully, this is great validation plugins for jQuery.
Jquery Validation
The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy.
JqBootstrapValidation
A JQuery validation framework for bootstrap forms.
Validate.js
A declarative validation library written javascript.
Jquery Creditcardvalidator
It detects and validates credit card numbers. It’ll tell you the detected credit card type and whether the number length and Luhn checksum are valid for the type of card.
Vuelidate
Simple, lightweight model-based validation for Vue.js.
Bootstrap Validator
The Validator plugin offers automatic form validation configurable via mostly HTML5 standard attributes. It also provides an unobtrusive user experience, because nobody likes a naggy form.
Vue Form
Form validation for Vue.js 2.2+.
Angular Validator
Angular-Validator is an easy to use, powerful and lightweight AngularJS validation directive.
Valid.js
A library for data validation.
Intl Tel Input
A JavaScript plugin for entering and validating international telephone numbers. It adds a flag dropdown to any input, detects the user’s country, displays a relevant placeholder and provides formatting/validation methods.
Hyperform
Hyperform is a complete implementation of the HTML 5 form validation API in Javascript. It replaces or polyfills the browser’s native methods and eases your validation task with custom events and hooks.
Formsy React
The main concept is that forms, inputs and validation is done very differently across developers and projects. This extension to React JS aims to be that “sweet spot” between flexibility and reusability.
Smoke
Smoke form validation and components for Bootstrap.
Approvejs
ApproveJs doesn’t automatically attach itself to input change events or form submit events. It also doesn’t manipulate the DOM for you by automatically displaying errors. This allows you to automate validation how you want.
Validator
HTML form validation. Perfectly made for all scenerios, lightweight, semantic & easy to use.
Revalidate
Revalidate is a library for creating and composing together small validation functions to create complex, robust validations. There is no need for awkward configuration rules to define validations. Just use functions.
V8n
The ultimate JavaScript validation library you’ve ever needed. Dead simple fluent API. Customizable. Reusable.