Rebinding jQuery qtip tooltip on images in bxcarousel

Posted by skerit on Stack Overflow See other posts from Stack Overflow or by skerit
Published on 2010-05-05T09:39:44Z Indexed on 2010/05/05 10:18 UTC
Read the original article Hit count: 427

I'm using bxcarousel to show a bunch of images. Each image has a tooltip, which I display using qtip.

This works fine for the first round, but when the images come round a second time the tooltips don't show anymore (because bxcarousel removes an element that slides out and puts it back at the end)

An example of the carousel can be found here: http://www.kipdola.be/carousel/carousel.html

This is the code used to bind the events (maybe it needs a "live" function somewhere?)

// Create the tooltips only on document load
$(document).ready(function() 
{
   // Use the each() method to gain access to each elements attributes
   $('#shopcarousel a[rel]').each(function()
   {
      $(this).qtip(

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dynamic-rebinding