Hey there! I am interested in creating an Auto tab feature that moves to the next input field after entering 4 characters. Additionally, I want it to skip disabled fields and move to the next enabled one.
How are you all doing with these questions? Auto tab to next input field when fill 4 characters
<input class="inputs" type="text" maxlength="1" />
<input class="inputs" type="text" maxlength="1" />
<input class="inputs" type="text" maxlength="1" disabled="disabled" />
<input class="inputs" type="text" maxlength="1" />
<input class="inputs" type="text" maxlength="1" disabled="disabled" />
<input class="inputs" type="text" maxlength="1" />
$(".inputs").keyup(function () {
if (this.value.length == this.maxLength) {
$(this).next('.inputs').focus();
}
});