On Sun, 18 Jan 2004 11:56:49 +0100, Martien van Wanrooij
<> wrote:
> I am working on a site with some pages that all have a form that starts
> with a group of radiobuttons. By default none of the buttons is
> checked. Before submitting the form there is a validation script that
> verifies if a choice has been made.
When you use form.elements[index], where form represents a form object and
index is a positive integer, you will obtain a reference to the control at
that index in the form. If you use form.elements['name'], where name is
the name of the control, you will obtain a collection of all controls in
that form, with that name.
That's how you can access a group of radio buttons[1].
That should help you on your way,
Mike
[1] There are other methods.
--
Michael Winter
d (replace ".invalid" with ".uk" to reply)