editableSelect.js是一款可搜索的下拉框插件,根据你输入的内容可匹配出相似的结果,本文的DEMO还引入了bootstrap来美化下拉框。
引入bootstrap和editable-select.min.js下拉框插件
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="jquery.editable-select.min.css" />
<script type="text/javascript" src="jquery.editable-select.min.js"></script>
<p>输入内容试试,支持中文</p>
<select id="editable-select" class="form-control">
<option>Alfa Romeo</option>
<option>Audi</option>
<option>中国人民银行</option>
<option>中国人民</option>
</select>
$('#editable-select').editableSelect({
effects: 'slide' //可选参数default、fade
});
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791