目录

bootstrap-select前端bootstrap自带的模糊搜索功能

bootstrap-select前端bootstrap自带的模糊搜索功能

bootstrap-select前端bootstrap自带的模糊搜索功能

引入的css和js

<link href="/js/plugins/bootstrap-select/bootstrap-select.min.css" rel="stylesheet">
<script src="/js/plugins/bootstrap-select/bootstrap-select.min.js"></script>
//模糊搜索---companyInformationList为后台传递的List---配合thymeleaf模板使用
<select id="companyInformation" name="companyName" class="selectpicker show-tick form-control" data-live-search="true" data-size="5" required>
	<option th:each="a:${companyInformationList}"
			th:value="${a.companyName}"
			th:id="${a.companyId}"
			th:text="${a.companyName}"></option>
</select>