JSFiddle - React, Tailwind, and code Playground
by davenaeder
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>dialog demo</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.24/themes/base/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.7.3/jquery-ui.js"></script>
</head>
<body>
<button id="opener">open the dialog</button>
<div id="dialog" title="Dialog Title">I'm a dialog</div>
</body>
</html>
JavaScript
var dialogOpts = {
show: 'puff',
draggable: false,
autoOpen: true,
modal: true,
closeOnEscape: false
};
$( "#dialog" ).dialog(dialogOpts);
//$( "#dialog" ).dialog( "open" );
/* /define config object
var dialogOpts = {
show: 'puff',
draggable: false,
autoOpen: false,
modal: true,
closeOnEscape: false
};
//create the dialog
$("#dialog").dialog(dialogOpts);
$("#dialog").dialog.open();
*/