bootstrap-select属性

# 参考:https://blog.csdn.net/zxl_langya/article/details/79247307
# bootstrap-select属性:
       <select  multiple="multiple" size="5" class="selectpicker"  data-max-options="2" data-live-search="true"
                                 name="types" id="tableMcc" style=" 200px;max-height: 100px; overflow: scroll; ">

                            {% for foo in  mcc_name_list %}
                                <option value="{{ foo.0 }}">{{ foo.0 }}|{{ foo.1 }}</option>

                            {% endfor %}

       </select>

 属性解释:
 multiple 多选框
 data-live-search="true" 模糊查询
 data-max-options="2"  多选限制2个

原文地址:https://www.cnblogs.com/lajiao/p/10469556.html