One issue I'm facing is that when I use select2 from the cdn with my select multiple input, the specific styles I apply to this select no longer show up. No matter if I specify these styles via id or class, they disappear once I add $('select').select2(); in my JavaScript code.
This is how I am implementing it:
$('select').select2();
Here's my HTML:
<select id = "cars" name="cars[]" multiple = "multiple" required = "required">
And here is the CSS styling for the select:
#cars{
background-color:red !important;
}
Any suggestions on how to resolve this issue and make sure the specified styles are not overridden by select2?