Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery select2: no matches found

When I set the select2 (3.4.0) value with the following code:

el.select2('val', [1,2,3, 4, 5, 6, 7, 8, 10, 11, 12]);

it shows me the no matches found message. It happens only at start-up, if I put focus on select2 popup menu the message dissapears and never appears again...

enter image description here

How can I remove this message? Thank you

like image 310
nKognito Avatar asked Feb 04 '26 08:02

nKognito


1 Answers

I ran into a similar issue where 'No matches found' was showing. Turns out I forgot to update the CSS when I updated my javascript to 3.4.0. Check to make sure you didn't make the same mistake.

like image 114
Brian Chang Avatar answered Feb 06 '26 23:02

Brian Chang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!