Skip to content
Michael edited this page Mar 12, 2016 · 16 revisions

Usage

Original documentation can be found here
Demos can be found here

Requirements

  • jQuery 1.4.2+
  • jQuery UI 1.8 widget factory and effects (if you'd like to use them)
  • A jQuery UI theme
  • This widget: jquery.multiselect.js
  • The CSS file: jquery.multiselect.css

The Basics

Construct a standard multiple select box. The multiple attribute is required:

<select id="example" name="example" multiple="multiple">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</select>

Once the document is ready, initialize the widget on the select box:

$(document).ready(function(){
   $("#example").multiselect();
});
Clone this wiki locally