Hi. i have look around and most people have issue with maintain scroll position on validation error after clicking on submit button. But my issue is my page does not return to top on validation error. how do i achieve this?
Refer
Scroll to (First error) First Validator that raised error when Validation fails in ASP.Net
Hi.. i do not want to scroll to first error. i just want to page to scroll to top. which currently it is not happening
Still my article would work.
just change
$('html, body').animate({ scrollTop: top - 10 }, 800);
to
$('html, body').animate({ scrollTop: 0 }, 800);