title: Same button for close and open dialog jquery
body: <p>i have one button but this only open the dialog</p>
  <p>I wanted to open and close it with the same button</p>
  <p>HTML   <code>&lt;li&gt;&lt;a class=&quot;plusnotes&quot; &gt;&lt;/a&gt;&lt;/li&gt;</code>
  JQUERY</p>
  <pre><code>$(&quot;.plusnotes&quot;).click(function(){
   $( &quot;#dialog&quot; ).dialog( &quot;open&quot; );
  })
  </code></pre>
  <p>Thank Guys</p>