Activate Lightbox by clicking on LI rather than thumbnail
- by NightMICU
Hi everyone,
Using Lightbox for a photo gallery and would like to initiate the function by clicking on the thumbnail's parent <li>rather than the thumbnail image. I have been able to do this easily with the thumbnail for the album (not using Lightbox, simply opening another page) with the following code:
$(".item").click(function(){
window.location=$(this).find("a").attr("href");return false;
});
However, can't seem to initiate Lightbox in a similar fashion. Ideas?
Thanks!