Is there a way to automatically change the focus in a display form, from one element to another?
In a display form, is there a way to change the focus (cursor, etc.) from an element (text box) to the next one (text box), once the user has reached a certain length in their input?
For example, a user would need to enter an identification number such as 001 022 987, with this number being split into three parts.
For each part, there is a text box. Once the user has reached a length of 3 in their answer, the focus would jump to the next text box. And the user could simply continue to write their answer. Which would be in the next text box.
I already try with a change event in the text box, that split the input string and pass part of it to the next text box. But then the user has to press tabs, for this change event to be fired.
I also tried with an autocomplete which does automatically pass the written input to the next autocomplete. But the focus does not change. And if the user continues to write, they stay in the first autocomplete.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare