How can I define the CSS only for the inputs which are enabled.
I don't want this first solution, because this forces to redefine the enabled style.
input[type="text"] {
background-color: white;
}
input[type="text"][disabed] {
background-color: #ECFFEC;
}
This CSS3 solution works, but not for IE :
input[type="text"]:enabled {
background-color: #ECFFEC;
}
I tried also with jQuery solution, but this solution fails with $("input:enabled") is null
$("input:enabled").css("background-color","#ECFFEC");
I would prefer a full CSS solution (or tell me which solution is preferred) ?