focus() not working - why?
<p>I have nested body elements and iframes. One from my html page, and one from the TinyMce. To the body of the tinymce I append div with many textboxes. Their ids are hi1, hi2 etc.</p>

<p>This code:</p>

<pre><code>$($('#petko_ifr').focus().contents()).find('#dishComments').find('#' + e.target.id)
</code></pre>

<p>returns the correct input element (textbox) and it has a focus method. But this:</p>

<pre><code>$($('#petko_ifr').focus().contents()).find('#myDiv').find('#hi1').focus()
</code></pre>

<p>doesn't focus! This:</p>

<pre><code>$($('#petko_ifr').focus().contents()).find('#myDiv').find('#hi1').val('somethingg')
</code></pre>

<p>works fine. Why is this happening and how to solve this?</p>

<p>In Chrome, when I inspect the element (click in the html code  and when I click visually on the textbox it is clicked. But when I'm not inspecting the element the click isn't working.</p>
