O.P. JavaScript Help
Hi All,
I have an image (lets say ImageA) and when its clicked i want it to change to ImageB.
But then if ImageB is clicked it goes back to ImageA.
I know how to chnage the image the first time, but not sure how to check if its already been changed to choose which image to change it too.
I think i need to set a boolean value to keep track, but i don't know much javascript so can someone help?
|