title: jquery Dialog display it content on load on the screen
body: <p>hi friend  i am trying to create custom dialog using j-query and inside dialog i am  putting some text box and check box , but the problem is when  i am displaying dialog box on button click , only the content inside the dialog will display onload and when i click on buttton it will appear in dialog only that too only first time only, what i want is it only display in dialog not onload ,and i dont want to make all component hide/show  display none/block every time ,because i have many component in dialog.</p>
  
  <p>here is my code</p>
  
  <pre><code>&lt;!doctype html&gt;
  
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;jQuery UI Dialog - Default functionality&lt;/title&gt;
      &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.8.2.js"&gt;&lt;/script&gt;
      &lt;script src="/resources/demos/external/jquery.bgiframe-2.1.2.js"&gt;&lt;/script&gt;
     &lt;script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="/resources/demos/style.css" /&gt;
      &lt;script&gt;
      /*$(document).ready(function (){
          $('#dialog').append('&lt;input type="checkbox" name="vehicle" value="Car"&gt;dfhgdfg&lt;/input&gt;');
      });*/
      function call(){
      $(function() {
          $("#dialog").dialog();
          $('p').css({'display':'block'});
      });
  }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="dialog" title="Basic dialog"&gt;
      &lt;p style="display:none;"&gt;This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.&lt;/p&gt;
      &lt;input type="checkbox" name="vehicle" value="Car"&gt;test1&lt;/input&gt;
      &lt;input type="checkbox" name="vehicle" value="Car"&gt;test2&lt;/input&gt;
      &lt;input type="checkbox" name="vehicle" value="Car"&gt;test3&lt;/input&gt;
  
  &lt;/div&gt;
   &lt;input type="button" onclick="call();" value="button"&gt;&lt;/input&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>