基本用法
用 .selectpicker class 创建<select>
<select class="selectpicker">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
启用 Bootstrap-Select via JavaScript:
$('.selectpicker').selectpicker();
设置:
$('.selectpicker').selectpicker({
style: 'btn-info',
size: 4
});