cdub
cdub

Reputation: 25741

A Drop Down List with Multiple Selects

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

Upvotes: 1

Views: 1535

Answers (3)

Matthieu
Matthieu

Reputation: 4620

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).

Upvotes: 4

Schleis
Schleis

Reputation: 43790

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

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

Upvotes: 0

GolezTrol
GolezTrol

Reputation: 116180

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.

Upvotes: 2

Related Questions