Checkbox validation with javascript?

by "Kasia Whiteis" <kasia(at)whiteis.com>

 Date:  Thu, 30 Mar 2000 08:20:58 -0500
 To:  <hwg-techniques(at)hwg.org>
 In-Reply-To:  co
  todo: View Thread, Original
Hi,

I've got a very simple form, with three checkboxes (example below).
I'm looking for a javascript that will make sure that at least one of them
is checked before the form can be submitted.

I don't know js, and I've looked at various form validation scripts, but
haven't found anything that would do exactly this.
Could somebody send me a snippet, or point me to a resource?

Thanks,

Kasia Whiteis
mailto:kasia(at)whiteis.com
__________________________________________________

FORM:
<form action="action.cfm" method="post">
	<input type="checkbox" name="checkbox1">Option1<br>
	<input type="checkbox" name="checkbox2">Option2<br>
	<input type="checkbox" name="checkbox3">Option3<br>
	<input type="submit" value="submit">
</form>

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