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 like to include a html button that would add the input from the user if it wasn't found. I tried doing this as a function as well as plain text. I also removed all html to see if that was doing it.
$('#search-select').select2({
...
"language": {
"noMatches": function(){
return "No Results Found <a href='#' class='btn btn-danger'>Use it anyway</a>";
}
}
});
This was previously "formatNoMatches" in Select2 v3.5