Reputation: 21
Is the a way to have the Jquery multiselect dropdown open by default and remain open all the time, could not able to figure it out where to change the settings, help would be greatly appreciated. I'm using this plugin http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/.
Thanks in advance.
Van
Upvotes: 2
Views: 5610
Reputation: 2043
This is much easier and allways open!
$("#multiselect-demo").multiselect({
selectedText: "# of # selected"
, autoOpen: true
, beforeclose: function (event, ui){ return false; }
};
Upvotes: 3
Reputation: 5353
the plugin has a 'auto open' option.
A boolean value denoting whether or not to automatically open the menu when the widget is initialized.
$("#multiselect-demo").multiselect({
selectedText: "# of # selected",
autoOpen: true,
close: function(event, ui) {
$("#multiselect-demo").multiselect("open");
}
});
Upvotes: 2