0

Okay,

This is driving me nuts. I'm trying to change the background color of my SELECTED options in a multi select box.

I've tried w/ CSS and Jquery to change it, and it does work, but the background color only changes when you focus on the box. Somehow the SELECTED attribute overwrites the background color with #d4d4d4 gray.

Here is an example

http://jsfiddle.net/e6XLs/

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
bonez
  • 685
  • 1
  • 16
  • 39
  • Duplicate of http://stackoverflow.com/questions/2402146/html-select-selected-option-background-color-css-style – John Kurlak Sep 22 '12 at 19:39
  • Extended discussions... http://stackoverflow.com/questions/1895476/how-to-style-a-select-dropdown-with-css-only-without-javascript http://stackoverflow.com/questions/1072239/is-it-possible-to-style-a-select-box – Sidrich2009 Sep 22 '12 at 19:40
  • @JohnKurlak The question you linked does work, but that is the same problem i'm having, ONLY works on click. I can make it change color on click the problem is on page load. – bonez Sep 22 '12 at 21:05
  • And the answer is that it can't be done without writing your own custom control. – John Kurlak Sep 23 '12 at 00:54

0 Answers0