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="width: 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个

posted @ 2019-03-04 11:10  nanaindi  阅读(1149)  评论(0编辑  收藏  举报