Heya guys. It's been a while since I've been here
So, I recently discovered the awesomeness of jQuery, and decided to use it.
I'm currently using the slideToggle() to toggle my div nicely.
The thing is, I also want to have a small icon to change according to wether the div is visible or not.
Here's my HTML:
<!-- Content of this box will come later -->
<div class="header" onClick="toggle();">
<img src="images/plus.png" class="icon" alt="" />
Pretty simple. Now, when I click on the header bar (header), it toggles the div "box" into view. No problem there.
Now, I want to have the src of the image "icon" to toggle as well.
I've tried quite a few things, but none seem to work.
Note that it doesn't need to be jQuery - but it's so awesome you'll probably need to use it anyway