Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there an HTML combobox (select + text) similar to Visual Basic??

Status
Not open for further replies.

kbhall

Technical User
May 14, 2002
1
US
It's been a number of years since I've done any web programming so please forgive my ignorance. Way back when, HTML had a selection box whereby the user could do a drop down select from a predefined list or a text box whereby he/she could type in an entry. However, there was not a combination box (similar to a combobox in Visual Basic) where the user could do either via the same box. Is there such a thing these days and if possible could an example be provided. Thanks very much.

KBHall
 
Hi,

Nope, there is still no such box.

The easiest way to accomplish this (imho) is to have the last option in the select box saying something like 'Other-Please enter below', and give a basic text box beneath for the user to enter their answer.

Of course this could be slicked up a bit with some dhtml so that the 'other' text box only appears when the 'other' option is selected in the first list.



Nick (Webmaster)

info@npfx.com
 
Humn, you could overlap a input and select menu so that only the input field and button show and onchange="" copy the value from one into the other.

----------
I'm willing to trade custom scripts for... [see profile]
 
Clever, stormbind!

Is there a way to code a select tag so the droplist has type-ahead capability. That is, where the option list is long and users want to start typing the desired value with the list moving as they go. A list of US States, for example, would let you type m-i-n to get Minnesota.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top