The goal of is to provide a cross framework and cross language way of validating data.
Through Java Script, we can validate name, password, email, date, mobile number etc fields.
In this example, we are going to validate the name and password.
The idea is to create a set of “validation descriptors” associated with each element in a form.
The “validation descriptor” is nothing but a string specifying the type of validation to be performed.
For example, you may want to ensure that someone inserts a valid e-mail address into a text box, or perhaps you want to ensure that someone fills in certain fields.