JSFiddle - React, Tailwind, and code Playground

by tabalinas

HTML

<div id="test"></div>

CSS

#test { height: 100px; border: 1px solid red; }

JavaScript

var i = 1;
$("#test").on("touchstart mousedown", function () {
    alert(i++);
})