extends Select2Editor remove search box code example
Example 1: select2 disable search
$("#js-example-basic-hide-search").select2({
minimumResultsForSearch: Infinity
});
Example 2: select2 search disable
$("#js-example-basic-hide-search").select2({
minimumResultsForSearch: -1
});