If you want to understand the question better, take a look at my code on jsfiddle.
Each Div contains only one link. When you click on the link, it sets the Div to active and shows a hidden Div within it. Clicking the link again toggles the active style and hides the hidden Div. This is how I want it to work, but I also want it so that if I click on another link while the previous Div is still set to active, it will only make the newly clicked Div active and toggle the previous one off.
I hope this explanation makes sense. Feel free to ask for more information if needed.
If you have suggestions for a better way to code this small snippet, I would greatly appreciate them.
Thank you.