One field type that you get in a lot of programs is missing from HTML. The missing field is the combo box. A combo box is a combination of two field types into one - the input field and the selection list. It is because it is effectively two fields combined together that it gets the name combo box.
So how do we create the combo box? Well here's the code for the one I have above:
<div style="background:#cccccc;border:solid 1px #000000">
<input type="text" name="state" value="" size="10" /><br />
<select name="s" size="1"
onchange="document.ex.state.value = document.ex.s.options[document.ex.s.selectedIndex].value;document.ex.s.value=''">
<option value=" " selected="selected">
To create your own combo box for whatever you want to use it for all you have to do is to copy the above code and substitute your selectable values for the ones shown in italics. You might also need to adjust the number of non-breaking spaces if you adjust the text field width to get the two fields to align properly.
So I guess it doesn't matter too much that HTML left out the combo box from their list of form fields because you can always create your own.
This article written by Stephen Chapman, Felgall Pty Ltd.