【发布时间】:2016-04-23 11:57:48
【问题描述】:
我想每次都向上显示下拉列表,不管下面有足够的空间。
如何实现呢?这样做的关键是什么?
更新
这是我初始化 Select2 的方式:
$("select[name=ingredients]").select2();
HTML 方面:
<select name="ingredients" multiple class="populate select2-offscreen form-control" tabindex="-1" style="width: 100%;">
<optgroup label="Diğer">
<option value="0">Un</option>
<option value="1">Şeker</option>
<option value="2">Tuz</option>
</optgroup>
</select>
【问题讨论】:
-
请出示您的代码
标签: jquery jquery-select2 jquery-select2-4 select2