خرید بک لینک

Vote count: 0

I have two inputs, when the first recieves an enter keyup, it focuses to the next one (see the script tag). On Chrome (49) on Android (6.0.1), when you press the -> button on the right-bottom of the keyboard (standard keyboard), it keeps the last word typed in the keyboard and carries it over to the new input.

Is there a way to prevent this or get a similar effect without that behaviour?

<input type="text" id="first-input"></input>
<input type="text"></input>
<script>
 var first = document.getElementById('first-input');
 first.onkeyup = function(event) {
  if (event.keyCode == 13) {
    first.nextElementSibling.focus();
  }
}

Ruing example here: https://jsfiddle.net/jmn0pze7/1/

asked 21 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 26 فروردين 1395 ساعت: 6:51

صفحه بندی