Quantcast
Channel: Issue with qTip2 - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Issue with qTip2

$
0
0

I have 10 divs. Each one has an attribute data-tooltip="text here".

I would something like:

$('.my_div').qtip({      content: $(this).attr('data-tooltip'),'bottom middle'      },      style: {         tip: true,         classes: 'ui-tooltip-red'      }    });

But it doesn't work. How can I get the tooltip text for each div without writing ten times the code with .qtip function?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images