I'm using the jQuery Validation Engine. I want the erroneous form field to be highlighted in red, as well as displaying the tooltip-error message. I think I can do this using jQuery's addClass.
My plan is to add a class 'error' to any input field that is rignt after the div.inputCreditCardformError (that is the div that holds the tooltip-error message. It appears when the field does not validate, and goes away once the field does validate.
My question is: will this added class disappear when the div.inputCreditCardformError disappears? Or will the added class stay in the page for the life of the page?