I want to remove that message, any form?
Here the html:
Here the jquery:
You can do it by placing:
minimumInputLength: 2,
formatInputTooShort: "",
Additionally, you could overload it:
minimumInputLength: 1,
formatInputTooShort: function () {
return "Este es mi mensaje";
},
Overwrite the message output using:
formatInputTooShort: function () {
return "";
}
Here I leave a functional jsfiddle: link
This has changed in version 4.0:
language: {
inputTooShort: function () {
return 'Mi mensaje.';
}
}
See formatInputTooShort property not working # 4252 :
kevin-brown commented on 18 Mar 2016:
Internationalization is one of the many things that changed in Select2 4.0.0.
You can now specify it using language.inputTooShort.
Breaking changes
[...]
Renamed options
[...]
Internationalization
formatNoMatches -> language.noMatches formatSearching -> language.searching formatInputTooShort -> language.inputTooShort formatInputTooLong -> language.inputTooLong formatAjaxError -> language.errorLoading formatLoading -> language.loadingMore formatSelectionTooBig -> language.maximumSelected