JSFiddle - React, Tailwind, and code Playground
by dhana36
HTML
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
JavaScript
$(function() {
function openPopup() {
$('#dialog').dialog({
autoOpen: true,
resizable: false,
modal: true,
open: function (event, ui) {
}
});
}
function CloseWindow() {
$('#dialog').dialog("close");
}
openPopup()
CloseWindow()
});