title: click on button scroll to particular div?
body: <p>Hello Everyone,</p>
  
  <p>Iam new in php. i wants to scroll down to my div to click on button. please help me that how i do this. when i click on button the scroll slightly move to my div.</p>
  
  <p>Iam using this code</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
      $('#scroll').click(function() {
      $.scrollTo($('#res'), 500);
      })
    });
   &lt;/script&gt;
  
  
  &lt;input type="button" value="Scroll" id="scroll" /&gt;
  
  &lt;div id="data"&gt;one big idea.
  &lt;div class="res" id="res"&gt;
  &lt;h2&gt;RESULT&lt;/h2&gt;
  one big idea..
  &lt;/div&gt;
  &lt;p&gt;one big idea.&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in advance</p>