Skip to content

Instantly share code, notes, and snippets.

@coolhome
Created December 9, 2013 13:57
Show Gist options
  • Select an option

  • Save coolhome/7872597 to your computer and use it in GitHub Desktop.

Select an option

Save coolhome/7872597 to your computer and use it in GitHub Desktop.
$(function () {
$('select[data-jms=true]').multiselect({
open: function(event, ui) {
//This hack needs to be merged into the real multiselect js.
$(this).parent().find('button.ui-multiselect').attr('tabindex', '-1');
},
close: function(event, ui) {
$(this).parent().find('button.ui-multiselect').focus();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment