This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi All, I have a select box which contains a long list of items. I would like to try to create the behavior that when the select box has focus, if the user types in a few letters, the box will scroll forward or back to the item that matches what was typed. For example, if the list is :
Alabama Maine Massachusetts
The default value for the select box seems to work like this, if I type M, the box forwards to "Maine", however, if I type M followed by A, trying to get to the Massachusetts choice, I end up in Alabama ! The select only seems to regard one typed letter at a time, so if I type M followed by A, the box goes to Maine, then Alabama.
I am guessing someone must have tried to do this because I have seen this behavior on web pages before.
The default behavior you're describing applies only to Microsoft Internet Explorer version 6 and below. Firefox and IE 7 already have the behavior you desire. So, the easiest way to get it would be to have all your users switch to FireFox or upgrade their IE browsers to version 7.