This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
This is a autocomplete script that works with a textbox and a select box. It works fine for the most part, however when I clear the textbox (by back spacing, or delete button) it will load the select box with a blank entry (the select IS populated). When the script get to the bottom where I test for the selectedIndex value, it crashes ("Object doesn't support this property or method"). Even a alert crashes it. It seems to load the select with another option but without a index???