Click to See Complete Forum and Search --> : Validating Radio Buttons


bharadwajrv
September 21st, 2002, 12:59 AM
hi,
how to validate the radio button, before submitting the form.
i have 3 radio button, i wanted to know which radio button is selected before submitting the form to the action page

thnaks in adv.
Venu

Zvona
September 21st, 2002, 05:08 AM
This should offer some help : http://www24.brinkster.com/zvona/radioCheck.html

It's in Finnish, but basic principle should be clear. You can form
groups of radio buttons by giving them a same name (obvious). Only exception is that every group must start with an index number :
1st group is named : "1Name"
2nd group is named : "2Name"
3rd group is named : "3Name"
..and so on

There are red/green ball indicating whether any of the radio buttons in group is checked. If none is checked, an error dialog is displayed and form isn't submitted.