 <p>The plugin's 'destroy' method removes the dialog functionality completely. This will return the element <strong>back to its pre-init state</strong>.</p> <pre><code>$( "#yourdiv" ).dialog( "destroy" ); </code></pre>