scrollTo
scrollto
Scroll To First Error Message On Page With jQuery And ScrollTo
Fri, 01/29/2010 - 10:25 | by philipnorton42If you have a large page or form that uses validation on it then you will probably want to tell the user that something is going on. One way to do this is by telling the user at the top of the page that something has gone wrong and then letting them figure out where.
A more elegant solution is to scroll the page down the just above the first error message so that the user is aware of what they need to fill in. This can easily be done through a combination of jQuery and the ScrollTo plugin.