autoOpen : booleanDefault: true

If set to true, the dialog will automatically open upon initialization. If false, the dialog will stay hidden until the open() method is called.

Examples

True

    
 <div id="dialog">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
 <script>
     $("#dialog").dialog({
         autoOpen: true
     });
 </script>

  

False

    
 <div id="dialog" style="display: none">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
 <button onclick="dialog.open()" class="btn btn-default">Open Dialog</button>
 <script>
     var dialog = $("#dialog").dialog({
         uiLibrary: 'bootstrap',
         autoOpen: false
     });
 </script>