Disable Radio Buttons

Results 1 to 2 of 2

Thread: Disable Radio Buttons

  1. #1
    Join Date
    Dec 1969

    Default Disable Radio Buttons

    I have 4 Radio Buttons on my form, User has to select one radio button and then i have to disable the remaining 3 radio buttons, could you please send some Javascript code to do this exactly...<BR><BR>Spring<BR>Summer I <BR>Summer II <BR>Fall

  2. #2
    Join Date
    Dec 1969

    Default RE: Disable Radio Buttons

    Firstly, I dont see the point in disabling the rest of them because if one is checked then the others cant be checked without the check on the other one moving (ie. only one can be checked at a time in any said group). BUT, if you do want to disable them then this will disable the first one:<BR><BR>document.form[0].group1[0].disabled=true<BR><BR>basically, "form[0]" says its the first form on the page and "group1" is the name of the group of radio buttons, "group1[0]" says that it is the first radio button in "group1".<BR><BR>Turnip

Posting Permissions

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