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 Plugi开发者_JAVA百科n?
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).
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.
For one dropdown list you can set the "multiple" attribute.
http://www.w3schools.com/tags/tag_select.asp
精彩评论