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
Post a Comment