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.
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