Forum Moderators: open

Message Too Old, No Replies

radio button selection makes text box active

how to do it?

         

youfoundjake

2:59 pm on Jul 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a page that has 2 radiobuttons
one is ourletter
the other is yourletter
if ourletter is selected, I would like the text box below to be inactive
if yourletter is selected, then I would like the text box to become active so that they can type in it before they hit submit.
Is there a way to hide the textbox or make it inactive until they select yourletter radiobutton?

coopster

3:34 pm on Jul 29, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can use JavaScript to perform such functions. Here is one example:

Checkbox with JavaScript onClick to Hide/Show [webmasterworld.com]

kiwibrit

11:15 pm on Jul 29, 2006 (gmt 0)

10+ Year Member



Or you could allow a second page to come up from serverside action with the use of a submit button. Thereby enabling use by those who do not have javascript enabled.