Display textbox when specific selection is made in a select drop-down

D

Daniel

Hello,

I have a select statement which includes a 'Other' option. I would
like to know how to set it up so that if my user selects the 'Other'
option that a textbox appear next to it so they can enter details.

Thank you,

Daniel
 
J

Jukka K. Korpela

Scripsit Daniel:
I have a select statement which includes a 'Other' option. I would
like to know how to set it up so that if my user selects the 'Other'
option that a textbox appear next to it so they can enter details.

You can't do that in HTML. You can do it in JavaScript, but then you should
take care of the functionality of the page when scripting is disabled. That
is, you should include the textbox normally in HTML and use JavaScript (when
enabled) to hide it until "Other" has been selected. More info:
http://www.cs.tut.fi/~jkorpela/forms/combo.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top