A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Feb 25, 2005
Mar 17, 2005 06:04:00
i want the code for
a an alert box should be displayed when more than one check box is selected
Joined: Jul 31, 2003
Mar 17, 2005 06:37:00
If you want one and only one check box, then use radio buttons. It's better to prevent user errors than to check and notify.
Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
Joined: Nov 08, 2001
Mar 17, 2005 07:36:00
As Tom said, a radio button will only allow for one value to be selected. It would be the best route to do that.
If you still want to use a checkbox,
You can call this onsubmit of your form
<form name="formName" onsubmit="return CountChecks()">
Hope this helps
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
Strange - Page Submits!!!
WA #1.....word association
WA #2 ..... word association
Which Box belonged to Mr Mathur ?
how to do
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013