Just diving into the world of jquery and I'm experimenting with the toggle function to display and hide a div, along with adding or removing an active class.
I've encountered 2 issues:
1) The 'active' class doesn't switch off when clicking the link to close the div; it remains highlighted.
2) When closing the toggled div by clicking the link again, there is no animation as it disappears instantly. How can I enable the animation on both show and hide toggles?
Any assistance would be greatly appreciated! Thank you!