Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
65
rated 0 times [  71] [ 6]  / answers: 1 / hits: 15723  / 11 Years ago, tue, august 27, 2013, 12:00:00

How do you disable the No matches found text on autocomplete on select2/Tagging Support?



This is what I have now:



$('#ProductDescriptions_30_keywords').select2({
tags:[],
tokenSeparators: [,, ],
minimumResultsForSearch: -1
}
);


But it still shows the No matches found message in autocomplete window. I would like to remove this.


More From » html

 Answers
290

I think I see what you're getting at... You want to hide the text that says No matches found if a user enters a value into that search field that doesn't exist in the list?



You can probably do that in CSS:



.select2-no-results {
display: none !important;
}


Here's an example.


[#76093] Monday, August 26, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dusty

Total Points: 739
Total Questions: 97
Total Answers: 85

Location: Angola
Member since Wed, Apr 13, 2022
2 Years ago
;