Javascript form validation (& checkboxes)

by =?iso-8859-1?q?andy=20dunbar?= <krone9(at)yahoo.com>

 Date:  Mon, 24 Jan 2000 09:00:24 -0800 (PST)
 To:  hwg-techniques(at)mail.hwg.org
  todo: View Thread, Original
Hi,
Spent too long trying to figure this out so I really
hope someone can help!

I've got a form which along with other fields has
about 10 checkboxes of which the user is expected to
pick one or more.

the validation currently checks name, address etc and
if they have not been filled in, gives an alert
requesting that the data be entered.
I'd like the validation script to see if any
checkboxes have been ticked and if so return true. If
none of them have been ticked then return false. (and
hence generate an alert saying tick a box!)

please help!
(in addition its built in intershop so I need seperate
script for each box to see if its actually needed in
the first place - but I've done that!!)

thanks in advance

Andy Dunbar

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA