title: Jquery .focus() not working without tabindex attribute of div
body: <p>How can I make jquery <code>.focus()</code> to work without setting tabindex of a div</p>
  
  <pre><code>  $("#msgdiv").focus();
  
  &lt;div id="msgdiv" tabindex="100"&gt; &lt;/div&gt;
  </code></pre>
  
  <p>what is the best practise for this</p>
  
  <p>what i want to achieve: After changing the password i want to display the acknowledgment message that the password has been changed and put focus on that div.</p>