I am trying to figure out how to make the expand/collapse arrow images work in my HTML document.
The menu itself works just fine. When clicking on the heading, its contents are displayed and when you click on it again, they disappear. So as far as that part, everything is fine. The only thing that doesn't work properly are the right/down arrows. When the page is loaded, the right arrows are displayed. Upon clicking on the heading, it becomes a down arrow. But then the problem comes in. When I collapse the heading, the image doesn't change back to a right arrow and remains a down arrow. How do I fix this? I've tried different methods and still haven't come up with a solution that works. CSS: