How to hide the [x] Close button in a jQuery UI Dialog
I'm trying to put up a modal dialog box made by the jQuery UI Dialog widget. It works fine, but I can't find the right way to hide the close box in the upper right corner.
I've read some suggestions, including the example in the UI API documentation for the Dialog widget "Hiding the close button" which involves setting up a CSS rule and using it in the dialog setup... but that didn't work for me.
I also tried, in the code that brings up the box:
$("#really-change.ui-dialog-titlebar-close").hide();
$('#really-change').dialog( 'open' );
...in that order, and with the hide after the open. The [x] remains.
Any suggestions?
Thank you!
Troy