Skip to content

Instantly share code, notes, and snippets.

@lou
Created April 22, 2012 18:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lou/2465864 to your computer and use it in GitHub Desktop.
multiselect callbacks
// You must init the multiple select with $('#my-select').multiSelect() before calling one of the following methods
$('#countries').multiSelect('select', 'value'); // Select the item with the value given in parameter
$('#countries').multiSelect('deselect', 'value'); // Deselect the item with the value given in parameter
$('#countries').multiSelect('select_all', true); // Select all elements. If parameter visible set to true, it will select only visible items. Otherwise it will also select hidden items.
$('#countries').multiSelect('deselect_all'); // Deselect all items previously selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment