Click through series of images
hello everyone
I have recently encountered a problem with jquery while trying to use the click function. Below is my code.
http://plnkr.co/edit/kT03fd2iMnWsIcnkdDTh?p=catalogue
What I am trying to do is start with an image ("closed"), click on it and have the image change to a different image ("open.png"), then click on it again and have it go back to "closed". Ideally, I would be able to add multiple "click" steps before returning to the initial image. However, this is not working and I was wondering if someone could help me understand why (and how to fix it). Thank you very much!