2

I've got a select box in a form with multiple="multiple" switched on.

At the moment I can obviously hold Ctrl if I want to select multiple items, but what I really want it the option to just click any i like, and they just get selected or deselected when clicked.

I guess kinda like a whole list of checkboxes, but I really don't want them as checkboxes, I want them all as a dropdown.

Is this even possible? Maybe with jquery?

Daniel Widdis
  • 8,424
  • 13
  • 41
  • 63
jimbeeer
  • 1,604
  • 2
  • 12
  • 25

2 Answers2

1

I think going with checkboxes is not a bad way. Check out http://jqueryui.com/button/#checkbox. Then you can style the buttons like a list with display: block etc.

bitWorking
  • 12,485
  • 1
  • 32
  • 38
0

You can also do something a little different like this: jQuery Sortable - Select and Drag Multiple List Items

The demo shown there works as you requested in an appealing way.

Community
  • 1
  • 1
Sablefoste
  • 4,032
  • 3
  • 37
  • 58