I am developing a small lightbox wordpress plugin in which if a user clicks an image the image should appear in the lightbox. How can i identify URL of the image in which the user clicks, so it will be useful in showing the image in lightbox. Is this can be done in jquery? Can anyone help?
Leave a Reply
You must be logged in to post a comment.
You can do like this
EDIT
change
to
and you will be able to access the image path in lightbox.php like this
Getting the image url is easy.