I'm trying to make something in jQuery that opens and closes (well, hides) divs when I click on them.
So first I have this:
just to hide all the divs when I open up the page.
Then for each div I have this code:
When I remove the line "$('.ffclickclass').hide();" it works fine. But I need this line in order to close every div when I click on a another link, otherwise I end up with a load of divs underneath each other, and I just want one at the time.
Anyone got an idea on how to make the div hide again by clicking a second time?