I have an anchor link inside accordion sub-menu. I have another anchor link outside this accordion that links to the inside anchor tag. When I click on outside anchor link I want the page to scroll down to accordion and also open the accordion menu where anchor was placed.
I have the following html inside body
<a href="#move"><p>Hello</p></a>
<div>
<div id="one">
One
</div>
<div>
some text
<div>
<div id="two">
Two
</div>
<div>
some text
<div>
<a id="move"></a>
</div>
When I click on Hello I want the page to scroll down to anchor tag with id move and after that I want to trigger a click on div with id two. I am new to javascript and jquery. I want to know if it is possible.
Thanks.