1
I want to remove messages from Select2:
- Searching;
- No Matches found;
Follow the code below:
Pagina Html
<input id="ajaxSecretaria" type="hidden" style="width:300px" />
Script:
$(function () {
$('#ajaxSecretaria').select2(
{ minimumResultsForSearch: -1,
ajax: {
url: '@Url.Action("GetSecretarias", "Home")',
dataType: 'json',
data: function (term, page) {
return { searchTerm: term };
},
results: function (data, page) {
return {results: data};
}
}
});
});
Do you really want to customize or just translate?
– Leandro Angelo
I want the message not to appear.
– BR - Faria Netto