Removing windows close button in jQuery dialog
<p>I want to remove the window close button provided by jQuery.</p>

<pre><code>$(function () {
    $('form').submit(function () {

        $("#popUp").dialog({
            modal: true,
            minWidth: 700
        });            
        $('div').close({ onload: function () {
            $('#popUp').remove();
        } 
        });
    });
});
</code></pre>

<p>This code does not work. How can I remove the close button?</p>
