I’m trying to change the text color in the dropdown boxes in a jquery selectbox plugin.
You would have thought changing the color in:
.sbOptions a:link, .sbOptions a:visited {} and/or
.sbOptions a:hover, .sbOptions a:focus, .sbOptions a.sbFocus {}
would have done the trick but surprisingly it doesn’t and I can’t figure out why. I don’t know if it’s perhaps something to do with the javascript
here’s the fiddle
Try this
http://jsfiddle.net/FQKax/39/
You can use
$(".sbSelector").css('color','Red');to change color.And you can also try
$(".sbSelector").css('backgroundColor','#ee55ee');http://jsfiddle.net/FQKax/44/