Open Accordion based on hash fragment #41017
Unanswered
jsadlergccaz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
For the edu I work for we use a lot of accordions for content. We can link using hash fragments so the screen scrolls to a specific ID without issue, but when we want to link to a closed accordion using its ID the accordion does not open. I've come up with a simple JS script to embed on pages we are linking to that have accordions in order to open them automatically:
Before we commit this for our sites, I was wondering two things:
Thank you in advance! :)
Beta Was this translation helpful? Give feedback.
All reactions