Click to See Complete Forum and Search --> : click a radio button and a text box appears: How can i do this?
hellyeah
08-08-2003, 03:56 PM
I'm working on a form where i have a a set of radio buttons where one of those buttons represents a chioce called 'Other.' After that, I want them to enter text for 'other' in a text box. Here's the problem: I don't want the user to be given that text box until they click the radio button for 'other.' How can I have the text box either invisible or 'grayed-out' right up to the point the user clicks 'other?'
David Harrison
08-08-2003, 04:27 PM
Hows this:
hellyeah
08-11-2003, 09:17 AM
Hell Yeah, That's what I'm looking for. Worked out great.
Many thanks. :D
David Harrison
08-11-2003, 02:04 PM
Happy to help. :)
nkaisare
08-11-2003, 03:29 PM
I'd rather do it this way:
<body onload="hide()">
<input type="text" id="boo" style="display: inline;">
This way, the textbox is available to the 13% users who turn off javascript.
David Harrison
08-11-2003, 05:19 PM
Nice catch, I didn't think of that.