Validating checkbox in javascript

03 Sep

is an open source component of Wrapp and is licensed under the MIT license.

There are no required external dependencies at all!

Just about any website or web application will require user input in one form or another.

Whether it’s filling in a contact form or entering profile details into a new application, handling input errors can be the difference between a good or a bad user experience.

Alternatively, you may write your own custom regex here as well. ###Usage example - validate on submit A generic callback function to have the form validated on the Submit event.

You can also include your own personal validations before the check All() call.

For a full list of all the available Types, visit the working draft page.Here is a tutorial for building your own Javascript validation that you can use on any input on your website or web application.I’ve intentionally kept it as easy, simple and lightweight as possible.It is possible to see if a check box has been checked or not in Java Script. A check box has a checked property, which returns either a 0 for not checked and a 1 for checked.You can also set the property to 0 or 1 to programmatically control the check box.