|
|
Question : maximum number of options in a dropdown menu
|
|
I have a list of about 2000 locations (Country-Region-City) and I am considering using them as options in a dropdown menu with one option preselected. I would like to know:
1) Is it feasible to put this many options in a dropdown menu? I don't imagine the total size in K is that large, but I am not sure that is the only factor to consider. Perhaps there are usability issues of which I am not aware if the user's computer is slow. I have never seen a site use a menu this large.
2) Is there a better way to do achieve the same result? I imagine there is some way to use javascript to set up 3 dropdowns for country, region and city (which would each be much smaller than 2000), and then preselect each. However I have no experience with that and do not know if it would even work. Obviously the selectable list of cities would depend on the list of regions which would in turn depend on the selected country. Is this an option or is there something else better?
Thanks for your help.
|
Answer : maximum number of options in a dropdown menu
|
|
No need for any extra code in setRegions.
To simulate the user clicking North America, first make sure the region dropdown has >
I've posted a working version here:
http://dailybuzz.net/ee/country/country.htm
http://dailybuzz.net/ee/country/city_state.js
|
|
|
|