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();
}
});
$("#MyDialog").dialog({
autoOpen: true,
.
.
.
open: function (event, ui) {
var header = document.getElementById("MyDialog").previousSibling;
$(header).find(".ui-dialog-titlebar-close").hide();
}
});
Comments
Post a Comment