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.
| CODE |
|
<SCRIPT>
<FORM onsubmit='return validateForm(this)' action='http://www.w3courses.com/index.php' method=post> |
Related Articles
- Automatic Redirect using Javascript
- Multi Level Drop Down Category & Subcategory Hierarcheal Selection using JavaScript
- Flash and JavaScript Conflict: Javascript Menu goes behind the flash file
- Display Current Date Automatically on your Website using JavaScript
- How to Create a Reload Button which will Reload the Webpage upon Clicking using JavaScript
- Automatically Redirect from one Webpage to Another Webpage using JavaScript
- How to Display a Webpage in the PopUp Window after Clicking from a Link using JavaScript
- Disable Right Clicking on Webpage, Images and Photos with JavaScript
