Here’s a nice, clean, and simply way to swap an image on a click of a link. You might use this if you have one large image a series of thumbnails, and when you click on the thumbnail you want to swap the large image.
Some example HTML:
Nice a clean, but with image swapping and no additional libraries! Nice.