title: Display the data in <div> into popup using JQuery
body: <pre><code>&lt;script type="text/javascript"&gt;
  
      $(document).ready(function() {
          $("#popup_div").dialog({
              autoOpen: false
          });
  
          $("#btn_click").click(function() {
              $("#popup_div").dialog("open");
              //$("#popup_div").toggle("100", $("#popup_div").dialog("close"));
          });
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I wrote a function which will display the data in popup and immediately the popup will close. I need that popup stays sometime after clicking close button it will close.</p>