Theming a input's focus:invalid CSS
I would like to apply a theme's
ui-state-error class to a input's CSS
focus:invalid property. I have tried:
$("input:focus:invalid").addClass("ui-state-error");
... but this has not worked and failed with:
unrecognized expression: unsupported pseudo: invalid
Is there a way to theme an input's
input:focus:invalid
pseudo
class
with
ui-state-error
?