parliament parliament - 1 year ago 73
Javascript Question

jQuery UI keep tooltip open for debugging (to style it)

I'm trying to style the jQuery UI tooltip but it keeps closing. I've tried the following with no success:

$("td label").tooltip({

disabled: true,
close: function (event, ui) { return false; }

}).on("click", function () {

}).off('focusout mouseleave mouseenter');

Nothing seems to keep it open. When I right click on it to go to Firebug, it vanishes before I have a chance.


Call the open method on your tooltips, that will make them stay opened

$("td label").tooltip().tooltip("open");