Skip to content
Michael edited this page Dec 7, 2016 · 32 revisions

Interact with the multiselect instance after it has been initialized by calling any of the below methods.

// example:
$("#multiselect").multiselect("method_name");

open

Opens the menu.


close

Closes the menu.


refresh

Reloads the checkbox menu. If you're dynamically adding/removing option tags on the original select via AJAX or DOM manipulation methods, call refresh to reflect the changes in the widget.


disable

Disable the entire widget.


enable

Enable the entire widget.


checkAll

Check all checkboxes.


uncheckAll

Uncheck all checkboxes.

In single select mode, this will also clear the current selection.


isOpen

Returns a boolean denoting if the widget is currently open or not.


getChecked

Returns an array of all the checked boxes.


getUnchecked

Returns an array of all the boxes that are not checked.


getButton

Returns the button element.


widget

Returns the menu container (all checkboxes inside).


option

Set or get one of the options after the widget has been initialized. If changing an option, the new option setting will take affect immediately.


destroy

Destroy the widget and return to the original select box.

Clone this wiki locally