I found this on another post, hopes it helps, it worked for me:
$("#div2").dialog({
closeOnEscape: false,
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
});
This is the link:
How to remove close button on the jQuery UI dialog?