I need to be able to add a search box to my multi-select fields using select2.
For whatever reason, while search boxes appear as expected in single-select fields, the same select2() call on a multi-select field does not add a search box.
var data = []; // Programatically-generated options array with > 5 options
var placeholder = "select";
$(".mySelect").select2({
data: data,
placeholder: placeholder,
allowClear: false,
minimumResultsForSearch: 5});
Does select2 not support search boxes with multi-selects? Does anyone have a good similarly-functioning alternative?