Auto-change focus while typing

you just need to use keyup event instead of change and other logic will work as is

  $("#input1").on('keyup', function() {
    if ($(this).val().length == 4) {
<script src=""></script>
<input type="text" id="input1">
<input type="text" id="input2">

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top