How about assigning classes to them instead of using .css()? This
might work:

> input[type='text'] { background: #FFFFFF !important; }
> input[type='text'].erroneous{ background: red !important; }

I am thinking that because the second rule is more selective than the
first, it should take precedence. If not, you'd need to assign a class
to the first rule and do a remove/add class.

Reply via email to