title: Pure onclick scrollTo
body: <p>I am trying to invoke the <code>scrollTo</code> function directly from <code>onclick</code> action.
  Found many solutions but none of them not worked form me</p>
  <p>I am trying to do this:</p>
  <pre><code>&lt;button onclick=&quot;$(window).scrollTo('#mydiv',100);&quot;type=&quot;button&quot;  placeholder=&quot;&quot; /&gt;CLICK ME&lt;/button&gt;
  
  &lt;div id=&quot;mydiv&quot;&gt;
  &lt;/div&gt;
  </code></pre>