Hi,
What code is required to change an image and the image description on click?

So there is an image, with a description below that image. Once the image is clicked, it goes to the next image, and replaces the previous image description with the new image description?

Does that make sense?

How can I do this?

Thank you.