briancray / tooltipsy

Introducing a jQuery tooltip plugin for control-obsessed designers.
http://tooltipsy.com
MIT License
325 stars 97 forks source link

Dynamically change Tooltip Text #36

Open jschnarel opened 9 years ago

jschnarel commented 9 years ago

Needing to dynamically change the tool tip on the fly, I added this to my version, just above the "show" function: resetTooltip: function(t) { this.title = t; if (this.$tipsy) { this.$tipsy.remove(); } this.ready = false; },

Call it this way: $('#objId').data('tooltipsy').resetTitle("new tooltip text");

ruibullseye commented 9 years ago

Hi @jschnarel just a minor correction to your code. You named the function resetTooltip and you are calling it as resetTitle.

Fix: $('#objId').data('tooltipsy').resetTooltip("new tooltip text");

Other than that great workaround, hope it gets implemented as i had the problem.

Best Regards, Rui Duarte