简体   繁体   中英

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. It is very well work in my pc using the focus function. But in IPAD it is not working. 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. 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. Is there any solution to my problem. Please help.

Have you tried using tabindex ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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