简体   繁体   English

iPad将焦点移至下一个输入字段

[英]Ipad focus to next input field

I have three text box for entering the phone number in my form. 我有三个文本框,用于在表单中输入电话号码。 What i need is when user enter 3 digit in first input field the control should automatically goes to the second input field. 我需要的是,当用户在第一个输入字段中输入3位数字时,控件应自动转到第二个输入字段。 It is very well work in my pc using the focus function. 使用聚焦功能,在我的电脑上工作非常好。 But in IPAD it is not working. 但是在IPAD中它不起作用。 I think what i need is to have a same function as we click the next button in ipad after entering the first input box. 我认为我需要的功能是与输入第一个输入框后单击ipad中的next按钮一样。 I need to make the control automatically to second input field. 我需要使控件自动进入第二个输入字段。 I googled this issue but most of the forum saying that that the ipad disabled the focus function because of security threat. 我在这个问题上进行了谷歌搜索,但是大多数论坛都说,由于安全威胁,ipad禁用了对焦功能。 Is there any solution to my problem. 我的问题有什么解决办法吗? Please help. 请帮忙。

Have you tried using tabindex ? 您是否尝试过使用tabindex

<input type="text" name="input1" tabindex="1" />
<input type="text" name="input2" tabindex="2" />
<input type="text" name="input3" tabindex="3" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM