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