title: How to Close JQuery Dialog on clicking a link on it?
body: <p>I have a link on parent page which opens a dialog which loads a file.asp have form and database result set with hyper links. When click on one hyperlink (JavaScript function in separate .js file), it updates some info to parent page and tried to close the dialog. </p>
  
  <p>I have two problems.<br />
  1. When use <code>$("#myDiv").dialog("close");</code> from inside a .js </p>
  
  <pre><code>function UpdateProdInfo() {
      // some code here to update parent and it works
  $("#myDiv").dialog("close"); }
  </code></pre>
  
  <p>it gives initialization error on using close function.<br />
  2. Problem in opening second time dialog, still initializing error.</p>
  
  <p>Please let me know how can I do this? Thanks QF</p>