title: js tab to next input field
body: <p>I have a 1-character input field which should autotab to next input when filled to maxlength (or &quot;keyup&quot;) but what happens is the cursor just moves to the right (ouside of the input) and the function someFunc() shows the alert but the cursor doesn't tab to next input of &quot;.input&quot;.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function someFunc() {alert ("Hi!"); $(this).next('.inputs').focus();}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="text" tabindex = i id="R${i}" onkeyup="someFunc();" maxlength = "1" size = "1" class = "inputs" /&gt;</code></pre>
  </div>
  </div>
  </p>