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/
I don't think its gonna work out.
Look at the code I left behind
$('html, body').animate({
scrollTop: ($('.error').first().offset().top)
},500);