# Jquery - lightbox

**URL:** <https://forum.kirupa.com/t/jquery-lightbox/283363>\
**Category:** Uncategorized\
**Created:** [March 5, 2009, 9:52am UTC](https://forum.kirupa.com/t/jquery-lightbox/283363 "2009-03-05T09:52:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samboy](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@samboy](https://forum.kirupa.com/u/samboy)\
**Post date:** [March 5, 2009, 9:52am UTC](https://forum.kirupa.com/t/jquery-lightbox/283363/1 "2009-03-05T09:52:52Z")

</div>

Hello, I am having trouble getting [jquery lightbox](http://leandrovieira.com/projects/jquery/lightbox/) to work. It’s not working for me instead when i click on the image it just take me to a new page for that image.

my code:

```auto

<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery.lightbox-0.5.js"></script>
<script type="text/javascript">
$(function() {
    $('#gallery a').lightBox();
});
</script>

```

```auto

<div class="thumbnail">
    
    
    <a title="For this example: $('#gallery a').lightBox();" href="../photos/Harrison-a.jpg">
                                <img height="230" width="345" alt="" src="../photos/Harrison-a.jpg"/>
                            </a>

    
    
    </div>

```

Please help.

Cheers,  
Samboy
