title: Rails Jump to a Certain Area on the Page
body: <p>I am having a hard time finding an answer to this...</p>
  
  <p>I have a few anchor tags at the top of my view. I would like those to simply link (or scroll in this case) to another area on the page. For example, if one clicks the "Side effects" link, I would like it to take them to the side effects location on the page, without redirected of course.</p>
  
  <p>What is the best way to go about this? Javascript? </p>
  
  <p>Here are is my view:</p>
  
  <pre><code>&lt;div class="quick_links well"&gt;
    &lt;h2&gt;Jump to:&lt;/h2&gt;
    &lt;ol&gt;
      &lt;li&gt;&lt;a href="#"&gt;Short answer&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Long answer&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Side effects&lt;/a&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/div&gt;  
  
  &lt;div class="content"&gt;
    &lt;h2&gt;Short Answer&lt;h2&gt;
    &lt;p&gt;blah blah blah&lt;/p&gt;
  
    &lt;h2&gt;Long Answer&lt;h2&gt;
    &lt;p&gt;blah blah blah&lt;/p&gt;
  
    &lt;h2&gt;Side effects&lt;h2&gt;
    &lt;p&gt;blah blah blah&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If there is already an answer to this, please point me in that direction. I am having an overly hard time finding anything. </p>