Focus Does not move on Enter Key in asp.net
<p>Hi Experts
I have a web Page i want to move Focus on Enter key on Next Control But it does not work
TextBox1 to Text2 focus move Properly But not in Text3 and Text4 and Further.
follow in my aspx Code</p>

<pre><code>&lt;asp:TextBox ID="TextBox1" runat="server" /&gt;
&lt;asp:TextBox ID="TextBox2" runat="server" /&gt;
&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"&gt;
    &lt;ContentTemplate&gt;
        &lt;asp:TextBox ID="TextBox3" runat="server" /&gt;

    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"&gt;
    &lt;ContentTemplate&gt;
        &lt;asp:TextBox ID="TextBox4" runat="server" /&gt;

    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;


  &lt;asp:TextBox ID="TextBox5" runat="server" /&gt;
&lt;asp:Button ID="Button1" runat="server" OnClick="Button1_Click" /&gt;
</code></pre>

<p>I Have Write the following JQuery</p>

<pre><code> $(function () {
            $('input:text:first').focus();
            var $inp = $('input:text');
            $inp.bind('keydown', function (e) {
                var key = e.which;
                if (key == 13) {
                    e.preventDefault();
                    var nxtIdx = $inp.index(this) + 1;


                        $(":input:text:eq(" + nxtIdx + ")").focus();

                }
            });
            });
</code></pre>
