Automatically Move Cursor from One Textbox to Another

前端 未结 6 1296
-上瘾入骨i
-上瘾入骨i 2021-01-03 06:03

I am making a Web application that validates passkeys and displays some values there are four passkeys for a file to be entered Validate it, I am entering the passkeys just

6条回答
  •  鱼传尺愫
    2021-01-03 06:17

    In my present application I have enter one Passkey then have to press Tab or using the Mouse I have to select the Next Textbox to enter next Passkey

    Don't do that. Just use the Control.Focus() method.

    When in HTML, you can use jQuery's focus():

    $("#textbox").focus();
    

提交回复
热议问题