i want to move my cursor from one to another text box on keypress event how it can be solved.please help me thnx in advance
<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type = "text/javascript" src = "http://www.aspsnippets.com/scripts/ScrollableGridPlugin.js?22_12"></script> <script type = "text/javascript"> $("input[type=text]").live("keydown", function (e) { var keyCode = e.keyCode ? e.keyCode : e.which; if (keyCode == 13) { $(this).next("input[type='text']").focus(); } }); </script> </head> <body> <form id="form1" runat="server"> A<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> B<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> C<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> D<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> </form> </body> </html>
Demo
A B C D
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.