I have a jsFiddle setup to where you will be able to click on the image to the left and when you do it changes the image, but when you click on the DIV as an entirety (expand-one) it does not swap the image out.
I want to be able to click on a DIV (as a whole) and swap out an image that is within the DIV without having only being able to click on just the image.
You can view what I mean here:
http://jsfiddle.net/5PDV5/1/
Thank you all! 🙂
All you need to do is inside the click handler for the div change the image’s src.
Also a more efficient method would be to use classes and background images so the code would read like:
HTML
CSS
JS