Mix between the autocomplete and drop down


#1

I’m trying to build a mix between the autocomplete and a normal drop
down. A

I’m trying to build a drop down that allows the user to type in desired
selection. Normal drop downs simply go to the first occurrence of the
words that start with the typed letter.

For example if we had a list of states (only showing A’s and M’s here -
see below). And I typed “M” the drop down would select Maine - the
first occurrence of the letter “M” words. If I typed in the letter “A”
after the letter “M” the drop down would then select Alabama - the first
occurrence of the letter “A” words.

I am looking for a solution that would select Maine after I typed in “M”
and then “A”. To continue the example if I typed in “R” following these
letters it would select Maryland.

Autocomplete is not quite what I need because I don’t want the user to
have quite as much freedom to type whatever they want. They should only
be able to select something inside the drop down, but I want them to be
able to find there selection by typing in more than just the first word.

Alabama
Alaska
Arizona
Arkansas


Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana


#2

The Ext js library has what you need. Look for the Combo Box.

http://extjs.com

But the regular HTML Select Box (in Firefox, at least) acts just the
way you want, you just need to type fast. I agree it is not very good,
though.

Cheers,

Bernardo

On Jul 12, 2:15 am, David M. <rails-mailing-l…@andreas-