Multiple Select

Multiple Select

  • Getting started
  • Documentation
  • Examples
  • Vue Component
  • Vue Examples
  • Online Editor
  • GitHub

›Documentation

Documentation

  • Options
  • Events
  • Methods
  • Localizations
  • Themes

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' (added html from 1.4.1).

  • Example: setSelects-getSelects

setSelects

  • Parameter: values, type

  • Detail: Sets the selected values. The values should be an array. The type 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 on 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

resetFilter

  • Parameter: -

  • Detail: Reset the filter.

  • Example: resetFilter

destroy

  • Parameter: -

  • Detail: Destroy the Multiple Select. If you want to remove the multiple select properties.

  • Example: destroy

← EventsLocalizations →
  • getData
  • getOptions
  • refreshOptions
  • getSelects
  • setSelects
  • enable
  • disable
  • open
  • close
  • check
  • uncheck
  • checkAll
  • uncheckAll
  • checkInvert
  • focus
  • blur
  • refresh
  • resetFilter
  • destroy
  • GitHub
  • Twitter
  • My website
  • My repos
  • Email
Copyright © 2010-2025 wenzhixin.net.cn