elamvik
11-04-2003, 04:10 AM
Hi, I know there are other threads with partly similar problems, but I haven't been able to find exactly what I need.
I found a tutorial about form validation:
http://javascript.internet.com/forms/val-external-js.html
That script validates only text fields, and I need to add validation for required radio buttons and checkboxes as well. Here's an example on what I need:
- 3 radio buttons (all unchecked), one must be checked by user
- 3 checkboxes (all unchecked), minimum one must be checked by user
I have given the radio buttons the same name, the same goes for the checkboxes, but the script doesn't like it very much.
If somebody could help me out I would be very grateful!
Thanks,
Ela
I found a tutorial about form validation:
http://javascript.internet.com/forms/val-external-js.html
That script validates only text fields, and I need to add validation for required radio buttons and checkboxes as well. Here's an example on what I need:
- 3 radio buttons (all unchecked), one must be checked by user
- 3 checkboxes (all unchecked), minimum one must be checked by user
I have given the radio buttons the same name, the same goes for the checkboxes, but the script doesn't like it very much.
If somebody could help me out I would be very grateful!
Thanks,
Ela