Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checkbox

 
akash kadarla
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want the code for

a an alert box should be displayed when more than one check box is selected
 
Tom Blough
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Cheers,
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


Hope this helps
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic