Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to make a tooltip appear once and only once

Hi there tipped community,

I would like to make a tooltip appear once on a hover event,

then the user clicks the "close" cross - and the tooltip never appears again.

been trying to combine the example code from the site:

Tipped.create("#simple-tooltip", "Some tooltip text", {
skin: 'light',
position: 'bottomleft',
close: true,
hideOn: false,
onShow: function(content, element) {
$(element).addClass('highlight');
demoCount++;

                    },
                    afterHide: function(content, element) {
                    $(element).removeClass('highlight');

                    },


                });

and

Tipped.remove('#simple-tooltip .tipped');

and thoughts guys?

Comments

Sign In or Register to comment.