Fire off JavaScript function when textbox is populated and focus is still set in jQuery?
<p>How do I execute an JavaScript function right when an ASP.NET text box control is populated and focus is still set?  The <code>onChange</code> event will not work because I need to programmatically move focus to the next form element after the JavaScript function has executed.</p>

<p>Is is very similar to this <a href="http://stackoverflow.com/questions/2002209/execute-a-javascript-function-when-textbox-is-populated-in-jquery">question</a>.  The marked answer is correct for the context on the question, but after some more testing it did not exactly solve my current issue.</p>

<p>Pseudo code:</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
    function MyFunction() {
        //execute this function when MyTxtBox is populated and focus is still set
        //once core function is completed, move focus to MyTxtBox1
    }
&lt;/script&gt;
&lt;style type="text/css"&gt;
    .USBBox
     {
         position: absolute;
         left: -999em; 
         overflow: hidden;
     } 
&lt;/style&gt;   
&lt;asp:TextBox id="MyTxtBox" runat="server" CssClass="USBBox" /&gt;
&lt;asp:TextBox id="MyTxtBox1" runat="server" /&gt; 
</code></pre>
