How do we use multiple characters to reach an item in the list box
I am working on a html listbox produced from data from a database table with more than three thousand values. ( City names in a state).
While selecting a city name from the listbox, user want to reach a record in the listbox by typing more than one character. For example, to reach a city named "Fresno", they would like to type "fr" and be there on the record, where as the listbox goes to city whose name starts with "F" then goes to the city whose name starts with "R".
Is there any way that I can get this done?
Any help will be greatly appreciated.
Thanks
[577 byte] By [
mmandadi] at [2007-11-11 7:54:20]

# 1 Re: How do we use multiple characters to reach an item in the list box
Hi,
You need to build you own control, one that consistes of a text box<Input> and a DropDown(<Select>)
an eventhandler onkeydown on the textbox that takes the current text in the text box and highlights any <option> in dropdown that most matches it.
dev_j at 2007-11-11 23:34:59 >
