Answers for "how to disable default select2 search"

3

select2 disable search

$("#js-example-basic-hide-search").select2({
    minimumResultsForSearch: Infinity
});
Posted by: Guest on November-14-2020
2

select2 search disable

$("#js-example-basic-hide-search").select2({
    minimumResultsForSearch: -1
});
Posted by: Guest on December-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language