I create a site with ASP.NET MVC and use jQuery to test an unobtrusive library. I want to know if there is a way to connect to an event that displays a validation message, for example. at the point where the user enters something invalid (as opposed to when they press the submit button).
The reason I want to do this is because I am designing my error messages, such as mini pop-ups that appear above the field with the error, i.e. using absolute positioning. Due to the fact that one field may have different verification errors, I want to be able to correctly set the position of the field, given the variable height of the message. I also need to handle this event so that I can apply the class to the red border around the input element.
source share