Closed Thread Icon

Topic awaiting preservation: Javascript - Disable checkbox according to radio button? Pages that link to <a href="https://ozoneasylum.com/backlink?for=23233" title="Pages that link to Topic awaiting preservation: Javascript - Disable checkbox according to radio button?" rel="nofollow" >Topic awaiting preservation: Javascript - Disable checkbox according to radio button?\

 
Author Thread
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-08-2004 23:37

I have a form. The form has three radio button with the same name (this way only one can be checked)

If a user clicks on button A, then text boxes A, B, and C need to be enabled but D, E, and F need to be disabled.
If a user clicks on button B, then text boxes A, B, C and D need to be enabled but E and F need to be disabled.
If a user clicks on button C, then all text boxes enabled.

Anyone care to lend me a hand an let me know how I can enable and disable multiple textboxes when the radio buttons are called by the same name?

Thanks in advance!

Later,

C:\



(Edited by CPrompt on 09-08-2004 23:38)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-08-2004 23:49

eigh.........i think i got it. i forgot that when you give the inputs the same name it plops them into an array....

Later,

C:\

« BackwardsOnwards »

Show Forum Drop Down Menu