title: How to open JQuery UI popup onclick
body: <p>I have simple html page:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css"/&gt;
    &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
  
  
      &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              $("#OpenDialog").click(function () {
                  $("#dialog").dialog({modal: true, height: 590, width: 1005 });
              });
          });
      &lt;/script&gt;
      &lt;a id="#OpenDialog" href="#"&gt;Click here to open dialog&lt;/a&gt;
      &lt;div id="dialog" title="Dialog Title"&gt;
          &lt;p&gt;test&lt;/p&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to have popup content hidden and when click on the link open a dialog.</p>
  
  <p>What I'm wrong with in my code?</p>
  
  <p>Thanks!</p>