I am working on a website where I need to scroll the user to the top of the page (with jQuery) after form submit, everything works except for the actual scrolling, I believe the reasoning for this is that the person before wrote the entire page in <tables>
and the table element is scrolling, not the body. So standard soutions like:
$('body, html').animate({ scrollTop: 0 }, 800);
are not working, as they do not scroll the table/form to its starting point. Does anyone have a solution to this(other than tweaking the table not scroll on overflow)?