function move(field,nextFieldID) { if(field.value.length >= field.maxLength) { document.getElementById(nextFieldID).focus(); } }
<asp:TextBox ID="T1" runat="server" MaxLength="3" onkeyup="move(this,'T2')"> <asp:TextBox ID="T2" runat="server" MaxLength="3" onkeyup="move(this,'T3')"> <asp:TextBox ID="T3" runat="server" MaxLength="3" onkeyup="move(this,'T1')">
OnKeyUp
TextBox
T1.Attributes.Add("onkeyup", "move(this,' " + T2.ClientID + " ')");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)