Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.25 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.25 KB

jquery-multiSelect

A jquery plugin to manage multi-select in a more design way.

Example available at : JSFiddle

Dependencies :

Available Options :

  • enableChangeMode:Booleantrue to enable item selection on change. false To remain on an item selection with a button.
  • emptyOptionLabel:String – the label to show in the empty option added when in change mode.
  • addButtonLabel:String – the label to display in the selector button.

Available Functions :

  • destroy: to undo the multiSelect on an element.
  • refresh: to update the multiSelect with the new content from an element.

Usage :

This plugin will only take effect on select with multiple attribute.

$("#MyMultiSelect").multiSelect();

We can also use it with options :

$("#MyMultiSelect").multiSelect({enableChangeMode : true, emptyOptionLabel : "Empty Option"});

And to call functions :

$("#MyMultiSelect").multiSelect("refresh");