Now Available!

Almost all of my javascript code has been moved over to its new home at The Javascript Toolbox. Please go there to find the latest scripts, information, etc. These pages will remain here for a while for historical purposes in case anyone needs a production copy of old code.
[Toolbox]  [Example]  [Source]
This script is used when you have two form elements working together on a page - an input box and a select box.

A common practice to simulate a Windows "Combo Box" is to have a text box where a user can type a value, plus a select box which holds valid options. If the user selects an option from the select box, it gets filled into the text box.

This script allows you add better presentation to this concept by completing the user's entry as they type into the text box. As it matches options available in the select list, the option gets selected and (in IE) the text-entry box is auto-completed and highlighted. This works in a way similar to many Windows programs.


Start typing a name in the input box that matches a name in the drop-down...