i have such a function when it is invoked a dialog is created, after the dialog is closed and the button is clicked again, the dialog doesn't showup
$("#Button").click(function() {
$.ui.dialog.defaults.bgiframe = true;
$("#box").dialog({
modal: true,
draggable: true,
width: 600
});
});
whats wrong here?