I am looking for an opposite of select:focus, something that would style the select from CSS after a selection is made.
concept:
select:when not focused
{
color:transparent;
}
I am looking for an opposite of select:focus, something that would style the select from CSS after a selection is made.
concept:
select:when not focused
{
color:transparent;
}
You could use :not
pseudo-class and combine it with the :focus
one. Something like this should work:
select:not(:focus) {
color: red;
}
Here's a demo: http://jsfiddle.net/b2rnU/1
do u mean on focusout
$("element").focusout(function() { ... });
Editing to what @Pzin said, add a new class with select to get what you want.
Like
select:focus {
background: white;
}