Jquery destroy dialog box after x seconds

Posted by user342391 on Stack Overflow See other posts from Stack Overflow or by user342391
Published on 2010-05-30T12:56:22Z Indexed on 2010/05/30 13:02 UTC
Read the original article Hit count: 183

Filed under:
|
|

How can I destroy a dialog box after a certaing amount of seconds?????

This is my code:

<script type="text/javascript">
 $(function() {
  $(".dialog-message").dialog({
   modal: true,
   buttons: {
    Ok: function() {
     $(this).dialog('close');
    }
   }
  });
 });

 </script>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dialog