Try the following:
$(".ui-dialog-titlebar-close").hide();
You can hide the close button when opening a dialog box.
Link: http://jqueryui.com/demos/dialog/#event-open
This event is fired when a dialog is opened. Code examples
Set a callback function to handle an open event as an init parameter.
$( ".selector" ).dialog({
open: function(event, ui) { ... }
});
Bind to an open event by type: dialogopen.
$( ".selector" ).bind( "dialogopen", function(event, ui) {
...
});
source
share