title: Smooth scroll to div id jQuery
body: <p>I've been trying to get a scroll to div id jquery code to work correctly. Based on another stack overflow question i tried the following</p>
  
  <p>DEMO <a href="http://jsfiddle.net/kevinPHPkevin/8tLdq/" rel="noreferrer">http://jsfiddle.net/kevinPHPkevin/8tLdq/</a></p>
  
  <pre><code>$('#myButton').click(function() {
     $.scrollTo($('#myDiv'), 1000);
  });
  </code></pre>
  
  <p>But it didn't work. It just snaps to the div. I also tried</p>
  
  <pre><code>$('#myButton').click(function(event) {
       event.preventDefault();
     $.scrollTo($('#myDiv'), 1000);
  });
  </code></pre>
  
  <p>With no progress.</p>