Jump to content

How to open accordion section from an external link?


michaelmueller4321
 Share

Recommended Posts

Give each button a id ref representing hash name: url hash #section1,  button id="section1"

Then add this after function

Note: this wont work in try it example as it uses frames

var x = location.hash;
if(document.querySelector(x)){
document.querySelector(x).click();
}

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...