Showing / scrolling to top of page in jQuery
<p>I'm developing an app with a <em>kind of</em> multiple part form (step 1, step 2 etc...)</p>

<p>What I'm doing, is separating this out in divs, and having the submit button hide the current div, and show the next one.</p>

<p>I'd like the page to scroll to the top (as if it were a postback) when hiding/showing the next part:</p>

<pre><code>$('#my_submit_button').click(function (){
    $('#div_one').hide();
    $('#div_two').show();

    //now it should scroll to top of window...
    $(window).scrollTop(100);
});
</code></pre>

<p>However, this isn't working as expected.</p>
