You can just use css:
- .ui-dialog-titlebar { display: none; }
If that's too aggressive (ie. you only want to hide it on one dialog, or one kind of dialog), you can use a dialogClass, like so:
- .myDialog .ui-dialog-titlebar { display: none; }
then set the option on init:
- $("#dlg").dialog({ dialogClass: 'myDialog' });
That class will get added to the dialog element, which the titlebar is under. Finally, if you don't want to use css, but do it all in js, this should work:
- $("#dlg").dialog({
- open: function() {
- $(this).dialog("widget").find(".ui-dialog-titlebar").hide();
- }
- });