[jQuery] Re: validation: how do I make sure a radio button is picked?

2009-09-02 Thread RobG



On Sep 3, 6:17 am, Matt Wilson  wrote:
> I have a list of radio buttons, all with the same name, and each has a
> different value.
>
> I want a validator that tests if one is picked.  How do I do this?

Set one as checked by default (as suggested by the W3C HTML
specification), no script or validation needed.


--
Rob


[jQuery] Re: validation: how do I make sure a radio button is picked?

2009-09-02 Thread Matt Quackenbush
Perhaps I am misunderstanding something in your requirements, but with the
validation plugin (link below), it is as simple as adding class="required"
to the input tag.

http://docs.jquery.com/Plugins/Validation

HTH