I attempted to use the \"language.noMatches\" option when initiating Select2 and its throwing an undefined function? How do I go about modifying that bit of text? I would li
The option noMatches doesn't appear anywhere in the source code.
The actual option is named noResults. The working version of your example is:
$('#search-select').select2({
...
"language": {
"noResults": function(){
return "No Results Found Use it anyway";
}
},
escapeMarkup: function (markup) {
return markup;
}
});
You also need to override escapeMarkup, so the button appears correctly, as per this issue.