title: How to scroll to top of a div using jQuery?
body: <p>I have a gridview inside a div.. I want to scroll to top of the div from the bottom of the div using jquery.. Any suggestion..</p>
  
  <pre><code>&lt;div id="GridDiv"&gt;
  // gridview inside..
  &lt;/div&gt;
  </code></pre>
  
  <p>My gridview will have custom pagination generated link buttons in it... I will scroll to top of the div from the bottom of the link button click ...</p>
  
  <pre><code>protected void Nav_OnClick(object sender, CommandEventArgs e)
      {
          LinkButton lb1 = (LinkButton)sender;
          //string s = lb1.ID;
          ScriptManager.RegisterClientScriptBlock(lb1, typeof(LinkButton), 
   "scroll", "javascript:document.getElementById('GridDiv').scrollTop = 0;", true);
  </code></pre>
  
  <p>In the place of javascript, I ll call the jquery function... Any suggestion...</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Exactly like Stackoverflow questions per user page... When changing page nos it scrolls to top with smooth effect... I want to achieve that...</p>