Bootstrap-select
bootstrap-select 搜索,动态加载数据
- 1.开启搜索
<!-- data-live-search="true" -->
<select id="productNo" name="productNo" data-live-search="true" class="selectpicker form-control "></select>
- 2.动态加载
//加载数据
EnumList.GetEnumListToSelect($("#productNo"), "productToReport",DomainUrl("/common/enumList"));
$("#productNo").selectpicker('refresh');
bootstrap-select js设置选中
$('#productNo').selectpicker('val',(data.productNo));