I have a hidden div with specific error messages throughout my form. Before form submit I run a validate routine to check if all the required fields are filled with some tex
var errorDiv = $('.redAlert:visible').first(); var scrollPos = errorDiv.offset().top; $(window).scrollTop(scrollPos);
Demo: http://jsfiddle.net/Cjuve/2/