Skip to content

Added form highlighting and some refactoring to the validation functions. #18

wants to merge 1 commit into from

1 participant


I've added input field highlighting to the library.

the class that gets set on the inputs is configured through defaults.errorClass.

I have also refactored the validation function into smaller functions that handle one task only. This increases readability and decouples validation from getting error messages associated with a field.

@AlanHietala AlanHietala Added field highlighting to the library. you can configure what the e…
…rror class is using defaults.errorClass. The implementation preserves existing classes on the input elements
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.