How to find focus element on page using jquery?
<p>I want to try this example, but it is doesn't work. Why ?</p>

<pre><code>&lt;div id="test"&gt;&lt;/div&gt;
&lt;script&gt;
    $('#test').focus();
    alert($("*:focus").attr("id"))
&lt;/script&gt; 
</code></pre>
