Fork me on GitHub

jQuery MultiSelect Plugin

Requirements

jQuery MultiSelect requires jQuery 1.4.2+

Usage

$("selector").multiselect([options:Hash])

Options available:

The completions should be and array with all available completions that you want, each completion should be defined in one of following ways:

  1. String: using as string, the caption and value will be the same. example: "Hi"
  2. Array: you can use as Array with 2 elements, where first element will be the caption, and the second the value. example: ["Hey Dude", "dude"]
  3. Hash: you can send a hash with keys caption and value. example: {caption: "Hey Dude", value: "dude"}

If you want to multiselect as a replacement for a select tag, just select this using jQuery selector and apply multiselect, it will work like magic!

Examples

Simple usage

With Autocomplete

More results on Autocomplete

Disable new options

Creating from a select