Reputation: 562
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
Upvotes: 0
Views: 725
Reputation: 22076
Try this
You can use $(".sbSelector").css('color','Red');
to change color.
And you can also try $(".sbSelector").css('backgroundColor','#ee55ee');
Upvotes: 0
Reputation: 12774
Works for me I tried
.sbOptions a:link, .sbOptions a:visited{
color: #777;
text-decoration: none;
}
.sbOptions a:hover,
.sbOptions a:focus,
.sbOptions a.sbFocus{
color: #ddd;
}
Upvotes: 1