...

View Full Version : Maximum Number of Checkboxes Selected



bspahr
07-08-2004, 09:56 PM
I have a form with 20 checkboxes. I want to allow the user to select up to 7 at a time, but no more than 7. How can I do this?

Here is the code I am using:

<input name="c1" type="checkbox" value="-1">
<input name="c2" type="checkbox" value="-1">
<input name="c3" type="checkbox" value="-1">
<input name="c4" type="checkbox" value="-1">
etc.

bspahr
07-08-2004, 10:22 PM
Ths is what I was looking for:
http://javascript.internet.com/forms/limit-boxes.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum