JSFiddle - React, Tailwind, and code Playground
by staeff
HTML
<html>
<head>
</head>
<body>
<div id='lastClick'>not clicked yet!</div>
</body>
</html>
CSS
body{
width: 600px;
height: 390px
}
JavaScript
// jQuery - .on(), mouseevents
$(document).ready(function(){
$lastClick = $("#lastClick");
$(document).on({
mousedown: function(e) {
$lastClick.html('down');
},
mouseup: function(e) {
$lastClick.html('up');
}
});
});