Ustaw fokus na pole w dynamicznie ładowanym DIV

Jaka jest właściwa metoda ustawiania fokusa na konkretne pole w dynamicznie ładowanym DIV?

$("#display").load("?control=msgs"); // loads the HTML into the DIV
$('#display').fadeIn("fast"); // display it
$("tex#header").focus();          // ?? neither that
$("input#header").focus();        // ?? nor that
$('#display', '#header').focus()  // ?? nor that
$("#header").focus();             // ?? nor that works

Następujący kod HTML jest pobierany dodisplay DIV:

<div id="display">
<form id="newHeaderForm" class="dataform" action="/" method="post">
    <input id="to" type="hidden" value="22" name="to"/>
    <dl>
        <dt>Header</dt>
        <dd>
            <input id="header" class="large" type="text" name="header" value="" maxlength="128"/>
        </dd>
 </form>
 </div>

Wielkie dzięki!

questionAnswers(10)

yourAnswerToTheQuestion