I need to be able to add a search box to my multiple select fields using select2.
For any reason, while search fields appear as expected in fields with one choice, the same call to select2 () in a field with multiple choices 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 multiple select search fields? Does anyone have a good similarly functioning alternative?
source share