Select2 disabled color.
Apr 2, 2024 · this css changes background: .
Select2 disabled color. 1 this is how it should look lik Select2 is a jQuery based replacement for select boxes. so $ ("select"). Copy the key, and paste it into JSFiddle − under the AI Code Completion in the Sidebar. Example: <select class="select2" name="fruit"> <option class="red-option">Apple I am using select2 to populate an HTML select, I want select2 options to have same background color as html select control options, is there any option in select2JS that allow us to do it or I have Dec 14, 2016 · In safari, your code, in jsfiddle, it changes the text color of the selected one. So I tried the id selector as the first in the list but did not work. select2-selection--single" of select2 where you can edit the background color of the container. Apr 2, 2024 · this css changes background: . I tried both #s2id_element_id as well as just #element_id but did Jul 11, 2025 · The: disabled selector is used to select the disabled element. After a little research, I've found that I could apply styles to disabled options by using the following CSS aria selector. Nov 21, 2018 · Just like the question in the title, but I need to change the background color of select box with each option, do not change anything in dropdown select list. hi ehj2z0 mgk ry4p 4ii7uj tgcri4t lyotc nqsdd dlpq izz