This question looks a little neglected. The short answer is - you can't. However - never let the limitations of one control dictate what you do with your site.
You can have both a plain text input field and the drop-down box positioned such that it is fairly obvious to the user that if they wish to enter a different value, they put it in the textbox (perhaps have an 'Other...' option in the drop-down which would then set the text box to enabled/visible)
You can then use javascript to set the value of a hidden field based on the contents of the two controls. Ie if the value of the dropdown is 'Other...' use whatever is in the text-box, otherwise use what is selected in the drop-down.
In c++ and VB it's called a combo box. Unfortunately you don't get them in HTML.
What you could do is have a textbox with an image of the dropdown arrow next to it (or a button with ' v ' on it).
Then when the button is clicked show a menu on a layer. when a value on the layer is clicked use a function to put the value into the textbox.
I was going to make one a while ago but decided it wasn't worth it.
A common programming error:
if (!IknowHow) {answer="can't be done"}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.