title: jQuery toggle form down if it does not get submitted due to validation errors
body: <p>I have a jquery toggle menu with some password fields.</p>
  
  <pre><code>$(function(){
    $(".expand_password_edit_form").on("click", function(event){
    $(".password-edit").find('.password').slideToggle(400,
      function(){
        $('html, body').animate({
          scrollTop: $('.password').offset().top + $('window').height()
        }, 1000);
      });
    });
  });
  </code></pre>
  
  <p>But if the form does not get submitted, due to some validation errors, the menu is toggled up by default, so the user can't see the actual error labels on these fields.</p>
  
  <p>What could be a workaround here?</p>