[Javascript] How do you cycle thru the radio buttons on a web form ?
Flavio Gomes
flavio at economisa.com.br
Tue Jun 1 15:03:16 CDT 2004
document.formName is an array with all the form elements.
document.formName.rbName is an array with all the radios from a radio group;
(They aren't arrays, they are objects, but you may cicle trought them
with a for loop)
---
Flavio Gomes
flavio at economisa.com.br
_/_/_/_/ _/ _/
_/ _/ _/_/_/ _/ _/ _/_/
_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/ _/
_/ _/ _/_/_/ _/ _/ _/_/
dev at qroute.net wrote:
>I am running a survey.
>I need to detect the radio optioned questions in it which are being
>submitted with no option selected on them.
>I know by default and by design principles, radio's gotto be presented with
>an option already pre-selected, but in my particular case, I want to send
>the form with nothing pre-selected and force the user to select one.
>
>At submit time, I do not want to submit the form if a radio question is left
>blank.
>How do you accomplish it ?
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list