JQuey Modal Dialog Cancel the X

the title part is the a previous sibling element to your div element and indside it there is the 'X'

$("#MyDialog").dialog({
   autoOpen: true,
   .
   .
   .
   open: function (event, ui) {
       var header = document.getElementById("MyDialog").previousSibling;
       $(header).find(".ui-dialog-titlebar-close").hide();
   }
})
;

Comments

Popular posts from this blog

c# Service Play Sound with NAudio example by Moshe

JS/JQ simulate Enter event

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem