Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How to check to see if a checkbox is Blank


Message #1 by anne.do@c... on Wed, 11 Dec 2002 14:12:45 -0500
We have been busy after a power failure earlier in the week and some DNS
problems locally yesterday and today.  Almost caught up now though so the
service should be more or less back to normal.

Stephen

"SEAK, Teng-Fong" <tfseak@f...> wrote in message
news:244498@j...

I sent this post yesterday and I just got it back today ...... seems
like Wrox mailing server is very busy

> -----Message d'origine-----
> De : SEAK, Teng-Fong [mailto:tfseak@f...]
> Envoyé : jeudi 12 décembre 2002 11:00
> À : javascript
> Objet : [javascript] RE: How to check to see if a checkbox is Blank
>
>
> It seems more adequate for you to use "radio" rather
> than "checkbox"
> since only one choice is possible among the n choices.  Then
> you use the
> method Gerhard suggested to check for entry.
>
> > -----Message d'origine-----
> > De : anne.do@c... [mailto:anne.do@c...]
> > Envoyé : mercredi 11 décembre 2002 20:13
> > À : javascript
> > Objet : [javascript] How to check to see if a checkbox is Blank
> >
> >
> > I have a checkbox that appears several times in a form.  How
> > can I make sure
> > that at least one of the checkbox values is checked before
> > the form submits
> > using JS? I'm running into problems since the checkboxes all
> > share the same
> > input name so if(form.employmenttype.checked==true) doesn't work.
> > ______________________________________________________________
> > __________
> >
> > <script language="javascript">
> > Check (employmentfield)
> >
> > .......I need help here?......
> > </script>
> >
> >
> > Type of Employment:
> > <input type="checkbox" name="employmenttype" value="FT">Full Time
> > <input type="checkbox" name="employmenttype" value="PT">Part Time
> > <input type="checkbox" name="employmenttype" value="Temp">Temporary
> > <input type="checkbox" name="employmenttype" value="Intern">Intern
> >
> > <input type="submit" value="submit"
> > onclick="Check(this.form.employmenttype)">
> >
>
>




  Return to Index