We have a slider in a modal popup that is initially hidden. The popup is displayed with a click on a button on the parent webpage, then closed with a click on a button on the popup. When the popup is displayed the first time, the slider starts doing its trick beginning with the first slide. But after the popup is closed, the slider continues doing its trick because the popup is only hidden. So, the next time the popup is displayed the slide shown in the slider is whatever slide the slider happens to be on at that moment as it continues doing its thing.
Is there a way to stop and reset the slider to the first slide when the popup is closed? We want the popup to begin with the first slide every time the popup is displayed.