jonirvine
01-11-2001, 11:25 AM
Hi,
here's a problem for you all... any help would be appreciated.
I am setting up a form where the user has to select 3 options from a set of 6 checkboxes.
Is it possible using javascript that if they select 4 a pop up box will appear telling them that they can't select it because they have already selected 3?
If so, I'd love to know exactly how to do it. Here's the form code:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
<P>Please select 3 from below:
<P><input type=checkbox name="agree1" value="AA">The faster the better<br>
<input type=checkbox name="agree2" value="BB">Maximum space for maximum efficiency<br>
<input type=checkbox name="agree3" value="CC">Newest is best<br>
<input type=checkbox name="agree4" value="DD">Value for money<br>
<input type=checkbox name="agree5" value="EE">Quality before quantity<br>
<input type=checkbox name="agree6" value="FF">The right tool for the right job<br>
[/code]
Cheers in advance,
Jon
------------------
Web Design, development and hosting.
Contact: jon@dustnet.co.uk www.yorkdesigns.co.uk (http://www.yorkdesigns.co.uk)
Newest Project: www.101tutorials.com (http://htpp://www.101tutorials.com)
here's a problem for you all... any help would be appreciated.
I am setting up a form where the user has to select 3 options from a set of 6 checkboxes.
Is it possible using javascript that if they select 4 a pop up box will appear telling them that they can't select it because they have already selected 3?
If so, I'd love to know exactly how to do it. Here's the form code:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
<P>Please select 3 from below:
<P><input type=checkbox name="agree1" value="AA">The faster the better<br>
<input type=checkbox name="agree2" value="BB">Maximum space for maximum efficiency<br>
<input type=checkbox name="agree3" value="CC">Newest is best<br>
<input type=checkbox name="agree4" value="DD">Value for money<br>
<input type=checkbox name="agree5" value="EE">Quality before quantity<br>
<input type=checkbox name="agree6" value="FF">The right tool for the right job<br>
[/code]
Cheers in advance,
Jon
------------------
Web Design, development and hosting.
Contact: jon@dustnet.co.uk www.yorkdesigns.co.uk (http://www.yorkdesigns.co.uk)
Newest Project: www.101tutorials.com (http://htpp://www.101tutorials.com)