I have this link in one accordion drawer:
<a href="#armmounts">Go to arm mounts (test)</a>
It scrolls down the page to the accordion, but does not open it. I am using materialcss for the code, which depends on Jquery.
Docs show that an accordion will stay open on page load if the active class is added:
<li><div class="collapsible-header active" id="armmounts"><b>XXXX </b></div>
Is it possible to make a JS script so that an onclick event on a button will do a page load and write the active class into the id of the div and bring the link into the viewport? It would be an interesting exercise for me, but I'm not sure this combination of steps is possible or the best way to create the open links.