I am building a select list in an AJAX callback.
Once the list is returned I apply select2.
There is a class set to the option that sets the background color based on a filed value when the select
string is build on the server.
Before the select2 is applied the lists shows the options that should be yellow as expected.
However, once the select2 is applied the background color never changes even though when I inspect the html the class is set to yellowBG.
This is part of my AJAX callback:
The first is the html select list. the second is the html with select2 applied.
The html select displays the second option with yellow background as expected.
The select2 list shows all three option with no yellow background color on the second option.