You are here: Re: Display textbox when specific selection is made in a select drop-down « HTML « IT news, forums, messages
Re: Display textbox when specific selection is made in a select drop-down

Posted by Jukka K. Korpela on 07/12/07 17:46

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

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация