jQuery - Change text in an input field after it's created
<p>How can I write a script that will change an input field's text value, but the field is not yet created?</p>

<p>The script is loaded before the input field is created.  It needs to know that when any input with a certain class is created, it will then have some text put in to its value.  Can this be done with <code>live()</code>?</p>

<p>To clarify, the order of events are:</p>

<p><strong>1</strong> - Application-wide JavaScript for the page is loaded.  This contains script something along the lines of:</p>

<pre><code>$('.myDiv input').each(function() {
    $(this).val('some text');
});
</code></pre>

<p><strong>2</strong> - A second page-specific script is now loaded, which dynamically creates an input on the page, with no value.  <strong>I CANNOT MODIFY THIS SCRIPT.</strong> This is important, I need a solution that does not modify this script (otherwise I wouldn't be posting here).</p>

<pre><code>$('.myDiv').html('&lt;input type="text" /&gt;');
</code></pre>
