JSFiddle - React, Tailwind, and code Playground
HTML
<div id="tar" style="width: 300px; height: 300px; background: #e3e3e3">
</div>
<div id="info"></div>
JavaScript
$(function() {
$('#tar').selectable({
stop: function(event, ui) {
$('#info').html('left: ' + event.offsetX + '<br>' + 'top: ' + event.offsetY);
}
});
});