[jQuery] [validate] changing input's class upon error

[jQuery] [validate] changing input's class upon error


I want to find a simple way to change a form element's class when
there is an unsuccessful field. Like I would like to change the input
box to a red input box if there's an error.
Thanks
Vincent