Looking for a solution regarding my Bootstrap modal situation. I have a modal with a scroll bar, and what I want is that each time a user clicks on a button in the modal body, a function should be executed to move to the next step of a wizard within the modal. However, the challenge lies in wanting the scrollbar of the modal to jump back to the top every time a button is clicked and the next step is displayed.
I am aware that using "window.scrollTo(0, 0)" can easily achieve this on a web page, but how can I make it work within a Bootstrap modal?
Your help is much appreciated. Thanks!