title: jquery smooth scroll to div - strange behaviour
body: <p>I have a web page which has a fixed header, and 3 main divs one below the other. One of the links in the header is made to smooth scroll to the last div. The scrolling works on first click, but when I click again, it scrolls to the top of page. So, basically it is behaving like a toggle. First click scrolls to div, next click scrolls to top of page.</p>
  
  <p>The code I have is:</p>
  
  <pre><code>var targetOffset = $('#targetDiv').offset().top - 75;
  $('html, body').animate({scrollTop: targetOffset}, 700);
  </code></pre>