|
Helping ordinary people create extraordinary websites! |
Controlling Checkboxes with JavaScriptBy Will Bontrager2005-06-29
Limiting the Number of Checkboxes The demonstration has checkboxes representing six colors, and the user is asked to select up to three. If the user tries to select more than three, an alert box reminder is displayed. The JavaScript is function CountChecks(). It scans each checkbox to determine whether or not it's checked. If more than three checkboxes are checked, it
Tutorial Pages: » Controlling Checkboxes with JavaScript » Limiting the Number of Checkboxes » Totaling the Value of Checked Checkboxes » Checking or Unchecking a Group of Checkboxes » "All" and "None" Checkboxes Copyright 2004 Bontrager Connection, LLC |
|