title: How to scroll to an element in jQuery?
body: <p>I have done the following code in JavaScript to put focus on the particular element (branch1 is a  element),</p>
  
  <pre><code>document.location.href="#branch1";
  </code></pre>
  
  <p>But as I am also using jQuery in my web app, so I want to do the above code in jQuery. I have tried but don't know why its not working,</p>
  
  <pre><code>$("#branch1").focus();
  </code></pre>
  
  <p>The above jquery (focus()) code is not working for div, whereas If i am trying the same code with textbox, then its working,</p>
  
  <p>Please tell me, how can I put focus on a div elemnt using jQuery?</p>
  
  <p>Thanks!</p>