View Single Post
 
Old July 25th, 2007, 09:44 AM
mike_remember mike_remember is offline
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can simply write a JS function and pass the textbox id to which you want to move to, e.g. like below:

 function MoveOnClick(objId)
        {
            if (event.keyCode == "13")
                document.getElementById(objId).focus();
        }

Call it like this:
<input type="text" id="txtFirst" onkeydown=MoveOnClick('txtSecond')>

Regards
Mike

Don't expect too much, too soon.