JSFiddle - React, Tailwind, and code Playground

by alkos333

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css">
<div data-pm-type="tooltip-confirm" title="Content">
    X
    <div class="message message-content" data-pm-type="tooltip-content">
        Tooltip content goes here
    </div>
</div>

CSS

div {
    background: red;
}
.message.message-content {
    display: none;
}

JavaScript

$('[data-pm-type="tooltip-confirm"]')
    .tooltip()
    .off('mouseover')
    .on('mouseleave focusout', function(event){
         event.stopImmediatePropagation();
    })
    .on('click', function(){
        $(this).tooltip('open');
    });