title: JqueryUI Dialog issue, trying to close dialog within
body: <p>I am at the moment working on a new project but I have a slight issue, I am using </p>
  
  <pre><code>    $(".ui-dialog-content").dialog().dialog("close"); 
  </code></pre>
  
  <p>to close a JqueryUI dialog box from within it, aka a user clicks okay and the dialog box should close.</p>
  
  <p>However the above seems to close all open dialog boxes, which is a big issue, is there anything you guys know of that will close a dialog box from within it and only that dialog box.</p>
  
  <p>Also one last thing to note all dialogs ID's are based on time of opening so trying to close them from there ID is near impossible :(.</p>
  
  <p>Thank you for your help and I will look forward to your reply.</p>