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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -