Jump to content

Modal Images - Adding more images


Recommended Posts

Hi! I am Xavier

I have used the code to add Modal Images from the site and it worked perfect.

But when i tried to add more image to my gallery and apply the same code. it gets stuck. (am not good with JavaScript), my second image does not trigger the class: modal.

I have attached the original code.

I would be grateful if you could help me with the code to add one more image: (Eg. 2nd Image file name: img_snow2.jpg)




File has been saved to: https://www.w3schools.com/code/tryit.asp?filename=GN3UOEWNQKAR

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...