Welcome to W3Courses
 Like Us on Facebook

Validate

Validate a Check Box Using JavaScript

Using javaScript it is possible to check whether a check box has been checked or not. This is handy if you need your users to agree to the terms and conditions before they sign up. A check box has a checked property, which returns either a 0 for not checked and a 1 for checked. Following code shows how you can validate the checkboxes.

Share