Hello,
Just curious if it is possible to open an accordion based on an anchor link found inside accordion content area?
For example, I have this FAQ section that is within an accordion. I would like to have the ability to open the accordion based on child anchor called.
Would the best way to do this be:
1. Get href/anchor from url.
var theUrl = window.location.href
var hashValue = theUrl.split('#')[1];
2. find() href with attribute value of hashValue.
3. If anchor found, open parent accordion window pane and jump to anchor value?
Is there any built-in method for doing this? If not, does my above logic make sense?
Thanks for you attention.
Cheers,
Micky