Activate Lightbox by clicking on LI rather than thumbnail

Posted by NightMICU on Stack Overflow See other posts from Stack Overflow or by NightMICU
Published on 2010-04-25T02:16:54Z Indexed on 2010/04/25 2:23 UTC
Read the original article Hit count: 305

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about lightbox