Radio Button

Results 1 to 3 of 3

Thread: Radio Button

  1. #1
    Kalyani Guest

    Default Radio Button

    Hi there,<BR><BR>Can anyone tell me how to find out the value of the option button that is clicked in an option group in Javascript?<BR><BR>Thanks in advance,<BR>Kalyani

  2. #2
    E! Guest

    Default RE: Radio Button

    Can this help?:<BR><BR> // check the type of request with the output type<BR> var i<BR> for(i=0;i&#060;4;++i)<BR> if(form1.RadioRequestType(i).checked)<BR> reqtype=form1.RadioRequestType(i).value<BR> if(reqtype=="Data Request")<BR> {<BR> var t<BR> for(t=0;t&#060;4;++t)<BR> if(form1.RadioOutputType(t).checked)<BR> outtype=form1.RadioOutputType(t).value<BR> if(outtype=="Map")<BR> {<BR> alert("This is a data request. Output type can not be a Map")<BR> return false<BR> }<BR> }

  3. #3
    Kalyani Guest

    Default RE: Radio Button

    Yes absolutely. Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts