how can i call a function if the validation of a form element fails. My goal is to show additional items on the page if an error occurs during the validation. I'm using unobtrusive form validation. It would be nice to define an additional data element on the form elements tag like data-error-callback or something similiar.
Is there a way to hook into the validation process to get this working?
Thanks