Validating checkbox in javascript

Posted by / 05-Dec-2017 06:32

At the end, there's a little exercise to keep you busy too!Form validation is the process of checking that a form has been filled in correctly before it is processed.

It is also required to add server side form validation in your form processing script.

For example, if your form has a box for the user to type their email address, you might want your form handler to check that they've filled in their address before you deal with the rest of the form.

There are two main methods for validating forms: (usually done using Java Script).

The validations also help in lesser server side errors.

For example, if you have set length limit in the database for a text input, it is better to do the validation before it actually gets cut off by the database system or even getting an error thrown.

validating checkbox in javascript-89validating checkbox in javascript-40validating checkbox in javascript-10