Scroll to the Missing Field in a From #1462
-
Hey, I have a form in a tabbed container, at the bottom there is a 'next' button, does the checks if the required fields are filled or not to go to the next page. Now I can highlight the missing fields for the user when the next button is clicked, I also would like to scroll the form where the missing field is. Is it possible ? If yes can you please give me an idea on how to do that ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use the focus() method to "jump" to the field. It will automatically also scroll if the field is out of the view. myInput.focus() |
Beta Was this translation helpful? Give feedback.
You can use the focus() method to "jump" to the field. It will automatically also scroll if the field is out of the view.
myInput.focus()