I have a dialog box that I wish to close after 5 seconds.
I have a delay statement in, but it just closes anyway, without any delay.
Here is the code:
$('#dialog').dialog('option','buttons',[]).html('File tags and info updated successfully.').delay(5000).dialog('close');
Any help with what I’m doing wrong and how to fix it?
delayfunction is for animation, it may be used like this:You should use simple
setTimeout: