Sunday, July 6, 2014

Validate a form using javascript

We should validate a form for null values, otherwise user can click submit button without filling necessary information. In that case, our database will have many null values.

So below is a simple validation using javascript for validating a form.