Q:

How to autoOpen jquery UI dialog at a specific time

Is there a way I can use jQuery UI dialog to auto open after 5 seconds when the page finish loading, not just to autoload on page load.  I used autoOpen: true. 
Its working but on the page load.  My question is how can I set the time in seconds to pop out the dialog. 

A:

Set the autoOpen to false and try:
;$(function() {

  setTimeout(function() {
    $('#mydialog').dialog('open');
  }, 5000); // 5000 = 5secs

});

