Modern Combo Boxes
1. Introduction and Sample
Here is an example combo box for a state field. The Australian states and territories can be selected from the drop down list while states from any country in the world can be typed straight into the field. Tabbing out of the field or clicking outside of the combo box will close the drop down list (except if you tab out of the field while the mouse is still over the list in which case the list will disappear when you move the mouse off of it).
Note that you can have multiple combo boxes on the same page using this script, you just need to apply a different id to the input field within each.
So if you want to add real combo boxes into your forms then the place to start is with the HTML.
I wish to thank my friend Jimmy P for helping me work out the required combination of event handlers needed to make this script work.