Jquery Modal Dialog
Jquery Modal Dialog wrapper that behavior mimics vbscript msgbox
HTML
<input type="button" id="dshow" value="Call Dialog" />
<div id="foo" title="Empty the recycle bin?">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
</div>
JavaScript
$(document).ready(function() {
$("#dshow").bind("click", function() {
alert("ELLO");
$("#foo").dialog();height:140,
mod{
resizable: false,
height:140,
modal: true,
buttons: {
"Delete all items": function() {
$( this ).dialog( "close" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
}
});
});