Link to anchor on different page, then expand a DIV with ID…
Hi all!
I'm stuck on this one, and don't even know where to begin looking.
First off, I have a page that lists a series of practice areas for an attorney using H3s, each with individual IDs. Under each H3 is a DIV with a class of 'item.'
I'm using jQuery to hide each 'item' until the H3 above it is clicked. It then toggles visibility. Easy and works great.
My problem is that on my home page I've listed all the practice areas. They are all linked to their respective H3 on the practice areas page.
I'd like for a user to be able to click one of these links and be taken to the practice areas page with the relevant DIV expanded.
Example:
<a href="domain.com/practice-areas/#divorce">Divorce</a>
Then, when you land on the page, the DIV under the H3 with the ID of 'divorce' will expand.
Any way to do this?
Thanks.