Question by danjabolton: How do I pass parameters in javascript?
I’m making a JQuery lightbox popup, that displays a picture. I have made a thumbnail gallery, and the popup. My question is, how can I set the image source to that of the thumbnail that has been clicked.
– When this is clicked, I want the pic1 part of the source, and put it into the src of the lightbox .
Best answer:
Answer by Scott
In the lightbox function read the src parameter and display in light box
What do you think? Answer below!
write a function in head section e.g.
now write the the line in html as:
hoping this will helpful to you.