I am using Bootstrap Multiselect plugin to select values from multi-select dropdown and single select dropdown
I noticed couple of issues and tried several options but none of them worked. If anyone already resolved them, need advice.
- When using the plugin for single select my first item is always selected
- Unable to change the nonSelectedText text for single dropdown.
HTML
<select class="multiselect">
<option value="cheese"> Cheese </option>
<option value="tomatoes"> Tomatoes </option>
<option value="mozarella"> Mozzarella </option>
<option value="mushrooms"> Mushrooms </option>
<option value="pepperoni"> Pepperoni </option>
<option value="onions"> Onions </option>
Javascript
$(function() {
$('.multiselect').multiselect({
nonSelectedText: 'Check an option!'
});
});
CSS
.multiselect-container input[type=radio] {
display: none;
}