Skip to Navigation or Skip to Content

Steve Fenton
Author of The Reason Your Website Sucks

Jquery Two Sided Multi Selector

You Are Here: Home » JavaScript » Two Sided Multi Selector

Jquery Two-Sided Multi-SelectQuick Links

Visit the jQuery Two-Sided Multi-Selector project hub, which has a demonstration and download for this plugin on JS Plugins JavaScript Plugin Library.

Description

The jQuery Two-Sided Multi-Selector project is a plugin for the jQuery JavaScript Framework, which converts a multi-select select-list into a two-sided list, where the selected options can be moved from the left list into the right list and back again.

Requirements

CSS

  1. /* Recommended styles */
  2. .tsmsselect {
  3. width: 40%;
  4. float: left;
  5. }
  6.  
  7. .tsmsselect select {
  8. width: 100%;
  9. }
  10.  
  11. .tsmsoptions {
  12. width: 20%;
  13. float: left;
  14. }
  15.  
  16. .tsmsoptions p {
  17. margin: 2px;
  18. text-align: center;
  19. font-size: larger;
  20. cursor: pointer;
  21. }
  22.  
  23. .tsmsoptions p:hover {
  24. color: White;
  25. background-color: Silver;
  26. }

JavaScript

  1. $(".multiselect").twosidedmultiselect();