Wednesday, October 10, 2012

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();
   }
})
;

No comments:

Post a Comment