Reputation: 355
Is there any option to stay open the multi select dropdown.
I have found two ways to stay open (but its fails),
1) $('#multi_ Div').addClass('open');
2) $("#multi_ .dropdown-toggle").click();
But dropdown will close when we click on any other field on page.
here is the sample code
Upvotes: 1
Views: 4606
Reputation: 355
I found the way to stay open the multi select dropdown
Just call this line of code after initial the multi select dropdown
$('#multi_').parent().find('ul').attr('style','display:block;');
I am thinking, why there is not any option to do this by setting up initial time.
http://jsfiddle.net/r0kbch7u/47/
Upvotes: 3