JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="Click me" />
JavaScript
$(function () {
var left,top;
$("input[type='button']").on("mouseover", function () {
var obj = $(this),
left = Math.floor(Math.random() * 600),
top = Math.floor(Math.random() * 400);
obj.css("position", "absolute");
obj.css("left", left + "px");
obj.css("top", top + "px");
});
});