jQuery modal dialog cancel button isn't working
<p>I am using jQuery modal dialog in my web application. I have used one <code>button (cancel)</code> and want to close dialog by clicking on it but it's not working, while <code>disable &amp; destroy</code> is working.<br>
any idea please....</p>

<p><em><strong>Code :</em></strong></p>

<pre><code>$("#dialog-form" ).dialog({
          ....
         buttons: {
             Cancel: function() {
          $( this ).dialog( "close" );  // dialog doesn't close

         //   $( this ).dialog( "destroy" ); (it's working)
         //   $( this ).dialog( "disable" ); (it's working)
 } 
</code></pre>
