When a user clicks a button in my application that causes validation errors, is there a way to have the page scroll to the location of the Validation Summary if there are errors? I need to do this for both cases:
- Client Validation prevents the page from submitting
- Server Validation redisplays the web page
Is there an easy way to accomplish this in MVC?
jquery scroll to specific div position in case of error and focus
<– This post has a similar requirement – the stated solution is a js function firing on dom-load that scrolls the window to the desired position. Correctly implemented, this could create a solution for both client & server side validation.