bootstrap select 自动筛选 匹配
作者:互联网
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<link href="bootstrap.min.css" rel="stylesheet">
<link href="bootstrap-select.css" rel="stylesheet">
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="bootstrap-select.js"></script>
<script type="text/javascript">
$(window).on('load', function () {
$('.selectpicker').selectpicker({
'selectedText': 'cat'
});
});
</script>
<body>
<div>
<select id="id_select" class="selectpicker bla bla bli" data-live-search="true">
<!--<select id="id_select" class="selectpicker bla bla bli" multiple data-live-search="true">-->
<option selected=""></option>
<option>123</option>
<option>456</option>
<option>234</option>
</optgroup>
</select>
</div>
</body>
</html>
标签:load,function,bootstrap,456,cat,selectpicker,筛选,select 来源: https://blog.csdn.net/qq_35893094/article/details/100164432