Multi Select Limit

One question that came up on the ColdFusion forums was how to limit the number of items that a user could select in a mulit-select box. This is easy to do server-side, but client-side validation is much more appealing.

The following example will check how many items you selected before submitting the form. If you select to many you will see a JavaScript alert message. The maximum number you can select is 3.

Join Our E-Mail Newsletter

For Email Newsletters you can trust

Sister Sites

RiteTech LLC
Modern HOA