Ahmad
Ahmad

Reputation: 13436

Disable Tooltipster Tooltip on button click?

I am using the Tooltipster tooltip on my website.

I want to know, is there a way to disable a Tooltipster tooltip that is showing, on a mouse button click ?

Like suppose I have a form and the Submit button has a Tooltipster tooltip on it which shows when the user hovers the mouse over the submit button. Now, I want the tooltip to be disabled immediately (i.e. go away) when the user clicks on that form Submit button. Can this be done somehow ?

Upvotes: 5

Views: 3376

Answers (2)

Joan
Joan

Reputation: 239

This worked for me:

$('#idToHide').tooltipster('content', null);

Upvotes: 7

Curro Jimenez
Curro Jimenez

Reputation: 89

$('#idToHide').tooltipster('hide');

Upvotes: 0

Related Questions