Methods
The methods API of Multiple Select.
The calling method syntax:
$('#multiple').multipleSelect('method', parameter)
getData
Parameter: -
Detail: Gets the loaded data of the select (from v1.6.0).
Example: getData
getOptions
Parameter: -
Detail: Gets the options object (from v1.4.0).
Example: getOptions
refreshOptions
Parameter:
options
Detail:
Refresh the
options
object (from v1.4.0).Example: refreshOptions
getSelects
Parameter:
type
Detail: Gets the selected values. The
type
can be'value'
,'text'
or 'html', default is'value'
(addedhtml
from 1.4.1).Example: setSelects-getSelects
setSelects
Parameter:
values, type
Detail: Sets the selected values. The
values
should be an array. Thetype
can be'value'
,'text'
, default is'value'
.Example: setSelects-getSelects
enable
Parameter: -
Detail: Enables multiple select.
Example: enable-disable
disable
Parameter: -
Detail: Disables multiple select. During this mode, the user is not allowed to manipulate the selection.
Example: enable-disable
open
Parameter: -
Detail: Open multiple select.
Example: open-close
close
Parameter: -
Detail: Close multiple select.
Example: open-close
check
Parameter:
value
Detail: Check an option (from 1.4.1).
Example: check-uncheck
uncheck
Parameter:
value
Detail: Uncheck an option (from 1.4.1).
Example: check-uncheck
checkAll
Parameter: -
Detail: Check all checkboxes.
Example: checkAll-uncheckAll
uncheckAll
Parameter: -
Detail: Uncheck all checkboxes.
Example: checkAll-uncheckAll
checkInvert
Parameter: -
Detail: Invert check of current checkboxes, not work with
single
option (from 1.4.1).Example: checkInvert
focus
Parameter: -
Detail: Focus the multiple select.
Example: focus-blur
blur
Parameter: -
Detail: Blur the multiple select.
Example: focus-blur
refresh
Parameter: -
Detail: Reloads the Multiple Select. If you're dynamically adding/removing option tags on the original select via AJAX or DOM manipulation methods, call refresh to reflect the changes.
Example: refresh
destroy
Parameter: -
Detail: Destroy the Multiple Select. If you want remove the multiple select properties.
Example: destroy