jammmy — 2012-11-23T15:17:52-05:00 — #1
This is the website: coiffurestefan.be/wp
I'd like the "openingsuren" at the bottom to have the X when opened and the arrow when closed. How can I do this? I tried with CSS but it doesn't work like I want it to be.
aussiejohn — 2012-11-23T19:39:20-05:00 — #2
You could toggle an "active" class on the link, similarly to how slideToggle() will toggle open the "openingsuren" div, toggleClass() can toggle a class.
Having has a quick look at your code I think you'd only need to add a small bit of code to the line that currently does your slideToggle()
Then you can change the CSS rule for the active state to be:
Hope this helps
jammmy — 2012-11-24T01:17:11-05:00 — #3
Thanks! This works like a charm.