Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomatically generate a iPad tap event immediately after an input box is in focus
    primarykey
    data
    text
    <p>Yo, waddup?</p> <p>I have a series of input boxes that allow me to type a string of letters or characters that stores one letter into each box in a 'spill-over' manner. Each box is an input text type that has a limit of 1 character. </p> <p>It works fine on my web browser (in Windows). On the iPad however, after tapping the first letter inside the first input box, the second input box will highlight (focus), but the iPad's virtual keyboard will dropdown (disappear). I am then forced to tap the second input box to bring up the iPad's virtual keyboard. </p> <p>Demo. <a href="http://jsfiddle.net/frankiekam/GUaZB/9/" rel="nofollow noreferrer">http://jsfiddle.net/frankiekam/GUaZB/9/</a></p> <p><strong>HTML</strong></p> <pre><code>&lt;form&gt; &lt;input class="test" type="text" maxlength="1" /&gt; &lt;input class="test" type="text" maxlength="1" /&gt; &lt;input class="test" type="text" maxlength="1" /&gt; &lt;input class="test" type="text" maxlength="1" /&gt; &lt;input class="test" type="text" maxlength="1" /&gt; &lt;input class="test" type="text" maxlength="1" /&gt; &lt;/form&gt; </code></pre> <p><strong>JQuery:</strong></p> <pre><code>$("input").keyup(function() { var input_flds = $(this).nextAll(".test:first"); input_flds.select().focus(); }); </code></pre> <p><strong>CSS</strong></p> <pre><code>input[type=text] { width: 30px; } </code></pre> <p>This is frustrating to use (on the iPad) as to enter the letters 'a', 's' and 't' as shown in the image example below, I have to do 6 six steps:</p> <ol> <li>Tap to bring up iPad Virtual Keyboard</li> <li>Key in 'a', focus moves on to second input box</li> <li>Tap to bring up iPad Virtual Keyboard</li> <li>Key in 's', focus moves on to third input box</li> <li>Tap to bring up iPad Virtual Keyboard</li> <li>Key in 't' Very tedius !!!</li> </ol> <p><img src="https://i.stack.imgur.com/iVx11.jpg" alt="enter image description here"></p> <p>My Quest is this. I need to find a way for the Javascript/JQuery code to automatically register or create a iPad tap event right after the next input box is in focus. The proper flow should be like this:</p> <ol> <li>Tap to bring up iPad Virtual Keyboard (VK)</li> <li>Key in 'a', focus moves on to second input box, tap event auto-generated, VK pops up.</li> <li>Key in 's', focus moves on to third input box, tap event auto-generated, VK pops up.</li> <li>Key in 't'.</li> </ol> <p>What magical CSS/HTML/Javascript would I be needing for me to complete this Quest, Sire?</p> <p>Reference/Related: <a href="https://stackoverflow.com/questions/19557517/type-a-word-from-the-keyboard-and-store-each-letter-into-a-series-of-multiple-in">Type a word from the keyboard and store each letter into a series of multiple input text boxes</a> and <a href="http://moodurian.blogspot.com/2013/09/how-i-managed-to-allow-input-of-only-1.html" rel="nofollow noreferrer">http://moodurian.blogspot.com/2013/09/how-i-managed-to-allow-input-of-only-1.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload