Within my jQuery v3 / Bootstrap v4.1.2 application, I am utilizing chosen.jquery (Version 1.8.7) and struggling to find the method to modify the placeholder text color in a Chosen selection input using CSS styles such as:
::-webkit-input-placeholder { /* WebKit, Blink, Edge */
color: #c2c200 !important;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: #c2c200 !important;
opacity: 1 !important;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: #c2c200 !important;
opacity: 1 !important;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: ##c2c200 !important;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: #c2c200 !important;
}
::placeholder { /* Most modern browsers support this now. */
color: ##c2c200 !important;
}
To initialize it, I'm using the following code:
$(".chosen_select_box").chosen({
disable_search_threshold: 10,
allow_single_deselect: true,
no_results_text: "Nothing found!",
});
You can view the issue on this fiddle: http://jsfiddle.net/1Lpdk79r/3/
However, this approach is not working for the chosen input. How can I resolve this?