I'd like to add my own CSS class to the input fields, or associated elements, on validation failure or success. For example to facilate testing I'd like to add a "qa-val-fail"
CSS class for detection by Selenium. Ideally I'd like to add multiple classes.
In the Parsley documentation it says:
Customize your classes
You could change these classes' names in configuration, and the class holder element too.
but there is no further mention in the documentation of which configuration settings achieve this.
I have seen a few SOs with techniques using event listeners, but I'm hoping not to have to do that.
Check the doc of the defaults, you'll find
successClass
anderrorClass
.