JSFiddle - React, Tailwind, and code Playground
HTML
<button type="button" onclick="$('.div').off('dblclick')">
Off
</button>
<div class="div"></div>
CSS
.div {
background-color: red;
curspor: pointer;
width: 200px;
height: 200px;
}
JavaScript
$(document).ready(function() {
$(".div").dblclick(function() {
alert("Double clicked");
});
});