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?
2.1m questions
2.1m answers
60 comments
56.9k users