Overriding CSS styles of the jQuery UI Tooltip widget

For those looking to apply a custom class to the new tooltip widget (jQuery UI 1.9.1), extraClass doesn’t seem to work anymore, but there is a new option called tooltipClass.

$('.selector').tooltip({
        tooltipClass: "your_class-Name",
});

In order to address potential conflicts with jQuery’s css, you may need to add !important to the end of the lines in your css. Thanks to @sisharp for pointing that out 🙂

Leave a Comment