I want a assist with accordion objects on my web site. My web page is organized in such method that there are a number of accordion objects, and when one is clicked, it expands and reveals the content material. If then one other accordion is clicked on, the primary accordion auto-collapses and the opposite expands.
The issue is that – when one other accordion expands its content material, viewing-window just isn’t set to the start of this accordion. Relying on the scale of the content material in comparison with the content material size of the earlier accordion, generally you need to scroll as much as see the content material of the accordion you’ve simply clicked on. This isn’t very intuitive…
What I need to ask: Is there a method to make sure the web site auto-scrolls to the start of the content material below a accordion when a sure accordion button is clicked on?