Setting focus on hidden textbox field using Javascript
<p>How can I set focus on hidden textbox element?</p>

<p>I tried using </p>

<pre><code>document.getElementById("textControl_fd_component_JSON_TASK_NStext64").focus; 
</code></pre>

<p>But, this does not work here </p>

<pre><code>alert(document.activeElement.id); returns null. 
</code></pre>

<p>When I made this field visible, above script worked fine. </p>

<p>Any guesses where I am getting it wrong?</p>
