JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<input type="button" id="one" value="click me" />
<input type="button" id="two" value="I'll be clicked" />
</body>
JavaScript
$(function(){
$("#two").click(function(event){
alert("two clicked");
// alert(event.pageX);
});
$("#one").click(function(e){
//the coordinates of the second button are approx. 107,20
$(document.elementFromPoint(107,20)).trigger('click');
//$("#two").trigger('click');
});
});