title: Initializing and opening Jquery-ui dialog
body: <p>i'm trying to load a jquery-ui dialog when the page loaded .the page content is loading but the dialog doesn't show.</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function() {
  
          $("#loginfailed").dialog({
              width: 500, autoOpen: false, resizable: false, draggable: false,
              modal: false        
          });
          $("#loginfailed").dialog("open");
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>am i missing something ? i almost read the doc but it doesn't help me much .</p>