Validate a form using javascript By piya July 06, 2014 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. Read more