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

parliament picture parliament · Jul 30, 2013 · Viewed 11k times · Source

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 () {

    $(this).tooltip("open");
 }).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.

Answer

Omar picture Omar · Jul 30, 2013

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

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