I know this is an old post, but I recently came across this through a web search and wanted to contribute what I did to make it work. I tried Steve's suggestion of using:
$("#leave_help").siblings(".ui-dialog-titlebar").hide()
However for some reason it didn't work. It got rid of the title bar, but the close button was lost. So then I tried using sorin.eug's suggestion of:
$('.ui-dialog-title').remove();But it had the same results for me.
I admit that the likely cause of failure was due to my limited knowledge of jQuery and not because of bad suggestions, as it obviously worked for eventide.
So what I did to solve this was to change ".ui-widget-header" class to have the same color background as my div content so it would appear to be the same. Then I created a new class for the title bar and for the div content that added borders, again to make it appear as though it was all the same box and it worked out great.
Here is the end result, in case I lost you in my explanation.
This is to change the corner radius of the bottom left and bottom right of the title bar so it's square and not rounded:
- .ui-dialog .ui-dialog-titlebar {
padding: .4em 1em;
position: relative;
-moz-border-radius-bottomleft: 0px/*{cornerRadius}*/;
-webkit-border-bottom-left-radius: 0px/*{cornerRadius}*/;
-khtml-border-bottom-left-radius: 0px/*{cornerRadius}*/;
border-bottom-left-radius: 0px/*{cornerRadius}*/;
-moz-border-radius-bottomright: 0px/*{cornerRadius}*/;
-webkit-border-bottom-right-radius: 0px/*{cornerRadius}*/;
-khtml-border-bottom-right-radius: 0px/*{cornerRadius}*/;
border-bottom-right-radius: 0px/*{cornerRadius}*/;
}
I added these classes to my div so the bottom left and bottom right corners would be rounded and not square.(also one more which is my own and explained below)
- <div id="leave_help" class="ui-corner-bl ui-corner-br cus-dialog-content">
Some content goes here.
</div>
Then I added a border to the title bar class, excluding the bottom border to give it the "one box" appearance:
- .ui-widget-header { /*{borderColorHeader}*/
border-top:2px outset #BBB;
border-left:2px outset #BBB;
border-right:2px outset #444;
border-bottom:none;
background: #FFF;
}
And then finally I added a custom class for the div content, excluding the top border again to give it the "one box" appearance:
- .cus-dialog-content {
border-left:2px outset #BBB;
border-right:2px outset #444;
border-bottom:2px outset #444;
border-top:none;
padding:15px;
padding-top:0px;
background-color:#FFF;
}
Here is a screen shot of the result: