This topic is locked

Hide/Show form Text Fields depending on previous Check Box

1/3/2011 5:24:22 AM
PHPRunner General questions
C
chingupt author

Hi,
I have a page which has a check box "Passport Copy" and some text box "Academic Reference".
Here i want that when the user selects the check box for "Passport Copy", the text field "Academic Reference" should get enabled and similiarly, if unchecked, then disable it.
Or
When user selects the check Box "Passport Copy", then the text field "Academic Reference" should come as a popup where the user can enter the details.
How can the first and the second points be acheived?
Regards

Sachin

T
tedwilder 1/4/2011

you have to use javascript for that ( yeah not that helpful I know.. I'm lame at javascript. Try to ask the admin he knows that or check google : "javascript disable field " )