Skip to content

Instantly share code, notes, and snippets.

@lou
Created September 28, 2011 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lou/1247372 to your computer and use it in GitHub Desktop.
Save lou/1247372 to your computer and use it in GitHub Desktop.
deactivate selected element in multiselect
$('.multiselect').multiSelect({
afterSelect: function(value){
if (1 == 1){
var selectedLi = $('.ms-elem-selected[ms-value="'+value+'"]').first();
selectedLi.unbind('click');
selectedLi.addClass('beautiful-disabled-class');
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment