下拉框美化插件
   一些代码   0 评论   1367 浏览

下拉框美化插件

   一些代码   0 评论   1367 浏览

http://select2.github.io/select2/
http://selectize.github.io/selectize.js/

它能让丑陋的、很长的select选择框变的更好看、更方便,支持搜索,远程数据集,以及无限滚动的结果。

select2去除搜索框

$("#type_select").select2({
    minimumResultsForSearch: -1
});

tag带搜索和自定义tag

$('#tagInput').selectize({
    plugins: ['remove_button'],
  create: true,
  createOnBlur: true,
  maxItems: 10
});

Bootstrap-select

https://www.bootstrapselect.cn/examples.html

<select class="selectpicker">
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Relish</option>
</select>

本文由 RawChen 发表, 最后编辑时间为:2021-01-03 23:37
如果你觉得我的文章不错,不妨鼓励我继续写作。

发表评论
选择表情
Top