Can anyone help me figure out why my dialog won't go away when clicking the x? When I click it with modal = true, the modal portion disappears, but the dialog remains. With it off, the dialog still remains. I have tried multiple things, but it won't go away. I have tried cancel buttons... nothing.
I need a way to click something to get the dialog to appear, and a way for it to disappear if the user wants it to.
<link type="text/css" href="css/cupertino/jquery-ui-1.8.18.custom.css" rel="Stylesheet" />
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
<script>
$.fx.speeds._default = 1000;
$(function() {
$( "#dialog:ui-dialog" ).dialog( "destroy" ); // increase the default animation speed to exaggerate the effect
$( "#dialog" ).dialog({
autoOpen: false,
show: "blind",
hide: "explode",
modal: "true"
});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
return false;
});
});
</script>
<div id="dialog" title="title"><h1>dialog title</h1></div>dialog text<button id="opener">Add a Budget</button>
If you need more info, just let me know what you need.
thks
JJ