I've been trying to setup a lightbox (or similar) plugin to work with
my images, but am having problems due to the <a> tag trigger not
firing.  It appears that this is because jquery is triggering the
<img> event instead of the <a> event. For example:

The first one is called when I click the thumbnail, but not the second
(which is the one that I want to be called).

                jQuery(".flickr-photo a img")
                        .livequery("click", function() {
                                alert('img click');

                        });

                        jQuery(".flickr-photo a")
                        .livequery("click", function() {
                                alert('a click');
                        });


<div class="flickr-photo">
        <a href="blah_thumbnail.jpg"><img src="blah_big.jpg" /></a>
</div>

Any ideas what I'm doing wrong here?  It doesn't seem to be an issue
with livequery as far as I can tell.

Reply via email to