How to add a specific class to select2 drop element?
问题 I have select2 customized via css with its general classes and ids. Now, I'm trying to customize a specific class that will be provided to select2 and then apply in css to it. My issue: is NOT the select per say but the drop of it ( the div with the class select2-drop ) that is appended to the body, how can i access that one? I've already tried: $(".element").select2({ minimumResultsForSearch: -1, containerCssClass : "error" } ); but the class error is not inherited to that div. UPDATE: This