Support

Account

Home › Forums › Add-ons › Gallery Field › Flexslider onClick event? › Reply To: Flexslider onClick event?

  • Hi @danfloun,

    It might be that Flexislider is not bubbling the Javascript events like it should be.

    I would consider attaching the event to a wrapping element and use the context of the image. Eg:

    
    $('.my-slider-wrapper').on('click', '.img-class', function() {
    //Open the lightbox.
    });