JSFiddle - React, Tailwind, and code Playground
by jstenkvist
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>dialog demo</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.12.4.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
<button id="opener">open the dialog</button>
<div id="dialog" title="Dialog Title"></div>
<script>
$( "#dialog" ).dialog({ width : 300,
height : 200,
modal : true,
closeOnEscape: true,
resizable: false, autoOpen: false,
body: ''});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
});
</script>
</body>
</html>