Hello this is the first time I\'m using dialog. Here is my code:
$(\"#dialog\").dialog({ autoOpen: false, closeOnWscape: true, sho
Not sure why but you are putting the close event in the buttons option list and you misspelled closeOnEscape. Try:
$("#dialog").dialog({ autoOpen: false, closeOnEscape: true, show: "blind", width: 800, buttons: { "Close": function () { alert("close"); $(this).dialog("close"); } } });