Amitav Roy

Blog on web and travel

Javascript validations without writing JS code

Posted on by Amitav Roy

In this tutorial, I will show you a wonderful package which helps us get JS validations on forms without writing a single line of javascript code.

Writing validation logic in any application is a very time-consuming part. And when you need to ensure that the data going into the database is always accurate and up to the standard, we are looking at Javascript validation so that the user gets a sleek UI to understand where he/she is wrong in the form and also to safeguard the integrity and avoid junk data we also need to make server-side validations as well.

This means we are writing validation logic twice. One for server side and the second on the client side. But with the JS Validation module, now we will write validations only once; and that will be working both server side as well as client end as sleek JS Validations.