WestSide2003
Technical User
Hi,
I have 1 form with 6 form elements on it. 2 radio buttons, 4 text boxes
I want to disable all but one of the elements. Basically there are two radio buttons and 4 text boxes.
If the first radio button is selected, then all the other fields should be disabled.
If the user chooses the 2nd radio button, all the fields should be enabled. the 4 fields should only be allowed to be enabled if the user chose the 2nd radio button.
How can I do this?
The tables have ID tags. Right now I am using:
PageChoices.disabled=true;
where PageChoices is the ID of the table where the 4 text boxes exist. This does work, except I can still enter data into the text boxes, they are greyed out, but still allow input.
Any idea why?
-WS
I have 1 form with 6 form elements on it. 2 radio buttons, 4 text boxes
I want to disable all but one of the elements. Basically there are two radio buttons and 4 text boxes.
If the first radio button is selected, then all the other fields should be disabled.
If the user chooses the 2nd radio button, all the fields should be enabled. the 4 fields should only be allowed to be enabled if the user chose the 2nd radio button.
How can I do this?
The tables have ID tags. Right now I am using:
PageChoices.disabled=true;
where PageChoices is the ID of the table where the 4 text boxes exist. This does work, except I can still enter data into the text boxes, they are greyed out, but still allow input.
Any idea why?
-WS