1

Is there a way to make a drop down list have multiple selects? Holding CTRL. Maybe with a JQuery Plugin?

2
  • 2
    What do you want to show when somebody selecte multiple entires and collapses the list? Commented Aug 25, 2011 at 19:29
  • 1
    @nfechner there exists certain point in such control. Suppose you have 100 items. Dropdown with multiselect would display selected item captions in line and you would see all of them (if you selected just a couple of items). With regular listbox you don't know what's selected until you scroll all of the list. Commented Aug 25, 2011 at 19:32

3 Answers 3

4

checkout Chosen if you have lots of elements, as this can be an issue with a standard select. it is highly customizable, from the website :

Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly. It is currently available in both jQuery and Prototype flavors.

Not sure about the keyboard input though (which may not matter depending on your use case).

Sign up to request clarification or add additional context in comments.

2 Comments

If its goal is to make a select box more user-friendly, it can't possibly be that it supports multi select dropdowns.
@GolezTrol : it does support multi-select in a friendlier way. Second example in the project page (it's a before-after presentation though, it can get confusing). Unless I misunderstood your comment.
2

Just specify multiple="multiple" in your select element.

But remember. From a usability point of view, this isn't a very good solution. Maybe you should opt for a list of checkboxes instead.

4 Comments

This doesn't look like a drop down, does it?
@pimvdb Yeah, I know. But it's the first hit. And it explains things in such a way that even those who can't google will understand. ;-)
@Eugene Indeed it doesn't. It's just an advise to choose a different solution. Multi-select dropdowns suck. They're not usable at all. Avoid them.
i want it to look like a regular drop down list, not a box with a scroll bar so multiple DOES NOT work
0

For one dropdown list you can set the "multiple" attribute.

http://www.w3schools.com/tags/tag_select.asp

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.