Jquery validation plugin - Changing the default class of items that are not validated.

Jquery validation plugin - Changing the default class of items that are not validated.

Hello all,

I decided to try and use the Validation plugin for (naturally) form validation. I have run into a problem in that whenever a form gets submitted with data that does not conform to the validation rules it gives both the message label it attaches and the input that failed the class "error". This, unfortunately, matches the name of an already existing CSS selector that is defined in the base css styles of the site and is already used in a number of places. This results in me having to create more specific styles that override this for each page I want to use the validator.

My questions are, does anyone know of a way to change the default class that gets assigned to elements when a field fails validation? i.e "validation_error" or something like that? I've searched through the documentation   Failing that could anyone suggest another way to handle this other than what I am already doing? Any advice would be appreciated. Thanks much!


Jstall