DEV Community

mhsohag11
mhsohag11

Posted on

Answer: Add class to select2 element

For those wandering here from google, the property containerCssClass has a misleading name since it doesn't actually add any classes to the container element, but rather to the selection element. You can see this when you inspect the generated html.

I came across a nice little hack here that allows…

Top comments (0)