JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.0/themes/ui-darkness/jquery-ui.css">
<button id='my-button' title='Tooltip text'>Click me</button>
<button id='my-button-2' title='Still works'>Click me 2</button>

JavaScript

$(document).tooltip();

$('#my-button').click(function() {
    // This doesn't work.
    $('#my-button').tooltip('disable');
    
    // The code below isn't good enough, because the second button looses the tooltip too.
    // $(document).tooltip('disable');
});