Re: Form and JavaScript problem..

by Christopher Higgs <c.higgs(at)landfood.unimelb.edu.au>

 Date:  Fri, 28 Apr 2000 15:18:02 +1000
 To:  CRAIG S MONROE <cmonroe11(at)mediaone.net>,
HWG basics <hwg-basics(at)hwg.org>
 In-Reply-To:  cayman
  todo: View Thread, Original
At 22:20 26/04/00 -0400, CRAIG S MONROE wrote:
>I was wondering if you all could shed a little light on a problem I am
>having with a form with a script.
>
>Something is not working correctly...

Because the radio button has more than one value, you need to determine 
which one is checked:

//if 2e500 selected
if   ( document.product.choice[0].checked) {
         alert ("the 2e500 document write");
         }

//if the 3220h selected
else   {
         alert ("the 3220 document write");
         }



Chris Higgs <c.higgs(at)landfood.unimelb.edu.au>
Institute of Land and Food Resources
University of Melbourne http://www.landfood.unimelb.edu.au

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA