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

Asp.Net Ending Response options, Response.End() vs CompleteRequest()

JS/JQ simulate Enter event