基于jQuery UI的多项选择下拉列表框组件 jQuery UI MultiSelect Widget

Enable/Disable Widget

Programmatically calling the disable and enable methods.

var $widget = $("select").multiselect(), 
    state = true;

$("#toggle-disabled").click(function(){
   state = !state;
   $widget.multiselect(state ? 'disable' : 'enable');
});