JSFiddle - React, Tailwind, and code Playground

by interdream

HTML

<input type="button" id="test" value="click" style="width:200px" />

JavaScript

$("#test").mousedown(function(e) {
   console.log(e.pageX); 
});