Skip to content

Set css class of element depending on validation #473

Merged
merged 1 commit into from Sep 10, 2012

3 participants

@co-operation

Desired Behavior: Elements change their appearance after validating. Eg.
input fields get a green border after sucessfull validating, or a red
one if validating fails.
Solution: This can be done simply via
declaring to css classes for sucess/failure. Currently it's possible via
functions onFieldSuccess/onFieldFailure, but it's much more easy this
way.

@co-operation co-operation Set css class of element depending on validation
Desired Behavior: Elements change their appearance after validating. Eg.
input fields get a green border after sucessfull validating, or a red
one if validating fails.
Solution: This can be done simply via
declaring to css classes for sucess/failure. Currently it's possible via
functions onFieldSuccess/onFieldFailure, but it's much more easy this
way.
21f73e1
@posabsolute
Owner

thanks!

@posabsolute posabsolute merged commit aa93702 into posabsolute:master Sep 10, 2012
@Marco-PHPJunky

Do you have a working example with onFieldSuccess/onFieldFailure ?
I'm trying to get this to work but i cant get it to work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.