In normal the the no results found message shows when unrecognised name enters, but by adding the below code to filter results to show only the first letter matches there is no message shown.
function matchStart(params, data) {
params.term = params.term || '';
if (data.text.toUpperCase().indexOf(params.term.toUpperCase()) == 0) {
return data;
}
return false;
}
$("select").select2({
placeholder: "Input country name or select region",
noResults: function () {
return"No results found"
},
matcher: function (params, data) {
return matchStart(params, data);
},
});