I have found this very useful but I'd like to take it one stage further: as well as hiding the content relating to the other buttons when clicked, I'd like it to hide the content when clicking the open one again. So:
Hide all content to begin with (like sub-menus in a menu).
Click on a button to reveal its content
Click on the same button to hide its own content again so all content is hidden (whilst maintaining the function you have above to close the content of another button when a different button is clicked)
I am going round in circles trying to achieve this with no success.
I have found this very useful but I'd like to take it one stage further: as well as hiding the content relating to the other buttons when clicked, I'd like it to hide the content when clicking the open one again. So:
I am going round in circles trying to achieve this with no success.
Hey. I haven't figured a way to do number 3. If I came up with a solution I'll post it.