Form Validation Woes
by "Rasika Wijayaratne" <rasika(at)boursedata.com.au>
|
| Date: |
Mon, 9 Oct 2000 14:55:53 +1000 |
| To: |
"HWG-Gen" <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Hi Everyone.
I am having a FORM validation problem using JS. I basically have a script
and I want it to make sure that atleast ONE checobok is selected before the
form is submitted. The problem is when there are many checkboxes the script
works fine, but when there is only one checkobx it doesn't.
Please goto the link below and see 4 ur self. Whether the checkbox is
checked or not, the "WARNING" alert comes up (This page only has one check
box...):-
http://www.geocities.com/rwijayaratne/work/01.html
Butt he page below has the identical script but multiple check boxes, and it
works as expected.
http://www.geocities.com/rwijayaratne/work/02.html
Can anyone shed light on this mystery?
Rasika
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.