Bootstrap下拉框带搜索
程序员文章站
2022-07-14 18:07:57
...
效果图:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="bootstrap-select.min.css">
<link rel="stylesheet" href="bootstrap.min.css">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="bootstrap.js"></script>
<script type="text/javascript" src="bootstrap-select.min.js"></script>
</head>
<body>
<div class="container" id="queryVisitResultsInitSELContainer"
data-kind="tab">
<div class="row param-box">
<div class="col-xs-12 form-inline">
<div class="form-group form-group-xs">
<div style="float: right; padding-left: 5px;" id="selectDiv">
<select id="selectbrand" data-live-search="true"
class="selectpicker show-tick form-control"
style="width: 144px;">
<option value="">
中国
</option>
<option value="">
美国
</option>
<option value="">
得过
</option>
<option value="">
韩国
</option>
<option value="">
日本
</option>
</select>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$('.selectpicker').selectpicker({
style: 'btn-info',
size: 10
});
</script>
</html>
上一篇: 带树的下拉框
下一篇: 通用下拉框实现&带级联