title: How to scroll to the particular div using jquery or javascript
body: <p>I want to scroll to the particular div using jquery</p>
  
  <p>I have written the code like:</p>
  
  <pre><code> $("#button").on('click',function(){
       var p = $("#dynamictabstrp");
       var offset = p.offset();
       window.scrollBy(offset.left, offset.top);
   });
  </code></pre>
  
  <p>But it is not moving to the div position. How can i do that in jquery or javascript</p>