I have a select box that shows about 7 options. How can I make select2
show more options?
<td class="span4"><select id="tec" class="span4"><option></option>
<option>A1</option><option>A2</option><option>C1</option>
<option>C2</option><option>C3</option><option>E1</option>
<option>E2</option><option>G1</option><option>G2</option>
</select>
</td>
It's about showing more choices, not about selecting
All select2 containers can be set the same height.
I just added this style, it's working for me
.select2-container--default .select2-results > .select2-results__options {
max-height: 400px;
}
This worked:
html:
<select class="bigdrop">
jquery:
$(".bigdrop .select2-results").css("max-height","400px");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With