selectpicker in bootstrap code example
Example 1: selectpicker dropdown in bootsttrap
<select class="selectpicker" required multiple>
<optgroup label="Picnic">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</optgroup>
<optgroup label="Camping">
<option>Tent</option>
<option>Flashlight</option>
<option>Toilet Paper</option>
</optgroup>
</select>
Example 2: select picker bootstrap
$('.ex-disable').click(function () {
$('.disable-example').prop('disabled', true);
});
$('.ex-enable').click(function () {
$('.disable-example').prop('disabled', false);
$('.disable-example').selectpicker('refresh');
});