javascript - Close dialog box after a message -


how can close dialog box after displaying message 3 seconds:

my code:-

$('#response').html("<p>message.  </p>").fadein('slow').delay(3000).fadeout('slow'). mydialog.dialog.close(); 

thanks

try:

$('#response').html("<p>message.  </p>").fadein('slow').delay(3000).fadeout('slow',function() {    mydialog.dialog.close();   }); 

Comments

Popular posts from this blog

ruby - Net::HTTP extremely slow responses for HTTPS requests -

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -