JSFiddle - React, Tailwind, and code Playground
by 2Yootz
HTML
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/smoothness/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<head runat="server">
<title>Site</title>
</head>
<body>
<form id="form1" runat="server">
<div id="page" style="text-align:center;">
<div id="header">
<h2>Site</h2>
<asp:Button ID="btnMnu" runat="server" Text="Manage Tasks" PostBackUrl="someurl" />
<input id="btnArchive" type="button" value="Archive Selected" />
<asp:Button ID="btnDelete" runat="server" Text="Delete Selected" />
</div>
<div id="dialog-confirm" title="Archive the Selected Tasks?">
<p>
<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
<span>Archiving will result in the deletion of the task. Are you sure you want to archive the task(s)?</span>
</p>
</div>
<div id="footer">
</div>
</div>
</form>
</body>
JavaScript
$(document).ready(function () {
$('#dialog-confirm').hide();
$("#btnArchive").click(function () {
$('#dialog-confirm').dialog({
resizable: false,
height: "auto",
modal: true,
buttons: {
"Archive": function () {
$(this).dialog("close");
},
Cancel: function () {
$(this).dialog("close");
}
}
});
});
});