title: How can I scroll to an element using jQuery?
body: <p>I want the page to scroll to a div that's at the top of the page. I have buttons for other parts of the page, but this isn't working when I scroll to the bottom and click on the button. It doesn't go to the top of the page.</p>
  <p>Here is the CodePen: <a href="https://codepen.io/Filizof/pen/xygWyp?editors=1010" rel="nofollow noreferrer">https://codepen.io/Filizof/pen/xygWyp?editors=1010</a></p>
  <pre><code>$(document).ready(function() {
      $(&quot;#btn1&quot;).click(function() {
          $(&quot;body&quot;).scrollTo(&quot;#menudiv&quot;);
      });
  });
  </code></pre>