How to select the element that has the focus?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/516152/how-to-select-an-element-that-has-focus-on-it-with-jquery">How to select an element that has focus on it with jQuery</a>  </p>
</blockquote>



<p>I have several HTML elements on the page. I want to write a JQuery code the tells me which element has the focus. I doesn't whether the element gets the focus because I clicked it or I used the tab key. The most important think is that it tells me which element has the focus</p>

<pre><code>$(document).ready(function () {

});
</code></pre>

<p>Thank for helping</p>
