-2
Personal have a form with the zip code field it after filling it should jump to the number field automatically.
</div>
                <div class="form-row">
                    <div class="form-group col-md-2">
                        <label for="cidade">CEP</label> <input type="text"
                        title="Preencha o campo Cep" required name=cep
                        maxlength="9"
                            class="form-control" id="cep" 
                            onkeypress="$(this).mask('00000-000')"
                            th:field="*{cep}" />
                        <div class="invalid-feedback"></div>
                    </div>
Well, I would recommend inserting your text fields into an array, then adding to it an event, every time you go through some change in value (
onchange), call a function that checks if the field is filled, and if so, change thestyle.focusfor the next field, with the next index in the matrix.– t_carvalho