JSFiddle - React, Tailwind, and code Playground
HTML
<div id="ask">
<h1> Some title </h1>
<p> Some info </p>
</div>
JavaScript
$(function() {
$( "#ask" ).dialog({
resizable: false,
modal: true,
buttons: {
"Allow": function() {
alert("You have been allowed"); },
"Deny": function() {
alert("You have been denied");
history.go(-1);
}
}
});
});