by mmastrac · 15y ago · 0 comments
For those of us in Canada, typing "ca" should probably rank countries that start with the "ca" prefix first, followed by countries that have a word that starts with "ca", finally followed by countries that just happen to contain "ca".
I don't see much use in showing "United States" as the first match for a user who has typed "c" and "a".
The same problem exists for the prefix: "uni". The list in that case is:
United States
United Kingdom
Réunion
Tanzania, United Republic of
Tunisia
United Arab Emirates
United States Minor Outlying IslandsThere is no reason why the auto-complete cannot have something like this:
<option value="DE">DE</option>
<option value="DE">Germany</option>
<option value="DE">Deutschland</option>Another is that that can be confusing. Suppose I want to enter a country whose spelling/native name I am not sure of, and after a few characters, four options remain, three of which are correct, but I do not know that. That can cause a needless google to find out, say, the difference between Liberia, Libya, and Libië.
I would say: test it and see.
http://skookum.com/blog/re-thinking-the-state-dropdown-with-...
http://www.reddit.com/r/Design/comments/h37gb/rethinking_the...
My blog post links to jsbin sample source so feel free
to optimize it with all of your proposed fixes.
http://jsbin.com/oxifa3/18/