【问题标题】:How to set size on multiselect-bootstrap?如何在多选引导上设置大小?
【发布时间】:2018-07-05 18:59:14
【问题描述】:

我想要一个打开的下拉菜单,因为它通常在 html 中使用 select 标签内的关键字 size。还没找到解决办法。

到目前为止我的 HTML 代码:

<select id="fileDropdown" multiple="multiple">
   <option value="cheese">Cheese</option>
   <option value="onions">Onions</option>
</select>

到目前为止我的 JavaScript 代码:

$('#fileDropdown').multiselect({
   buttonText: function(options) {
           return "Search or select";
     }
});

【问题讨论】:

    标签: javascript html bootstrap-multiselect


    【解决方案1】:

    你应该使用它来调整你的多重选择

    <select name='courses' multiple="multiple" size='8'>
       <option value="cheese">Cheese</option>
       <option value="onions">Onions</option>
    </select>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-27
      • 1970-01-01
      相关资源
      最近更新 更多