Rafael Guerreiro
Rafael Guerreiro

Reputation: 196

qtip2 on click is only showing once

I'm trying to configure qTip2 to show up when i click a div.

It works only at the first click...

I have a sample here: http://jsfiddle.net/8qLXF/1/

The crazy thing is: I'm using the same configuration in other part of my project and it works fine.

Upvotes: 0

Views: 340

Answers (1)

timidboy
timidboy

Reputation: 1722

You are applying the plugin to the element every time that element(a) is clicked. You should do $('...').qtip({..}) to an element only once.

You can use .one() to bind a click event that will happen only once. Sample

Upvotes: 1

Related Questions