Scripsit
mc*****@gmail.com:
I have to build a page which includes a select element (as a drop down
menu) with all the country names in it.
Tell the people who told you to do that what the drawbacks are. You should
be able to list down half a dozen good reasons easily.
However I just found out that
the need to be repeated many times so the client can select as many
country as they can in their around the world trip planning.
Technically, it need not be repeated, since you can use the MULTIPLE
attribute in the select element. However, people will generally not know
that they can select multiple elements and how to do that, and even if they
do, its is a nightmare to actually make such selections.
Using a set of checkboxes (associated with country names) would produce
_much_ better usability. Users would have to scroll the _page_ then, but is
this any worse than having to scroll the drop down _menu_? No, it's actually
much better, more useable.
Perhaps even better, you could include a text input field (input type="text"
or textarea) where people can type in the names of the countries. You would
then need to parse - in the server-side form handler - the names, maybe even
with synonym recognition and loose matching (taking, say, "finland",
"finnland", and "finlandia" all matching "Finland"). More work to you, maybe
better usability to users.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/