I am trying to close my jQuery UI interface after 5 seconds, but the code below does nothing, no suggestions? I tested it with alert("hellow") and it worked fine, but the code below does not work.
success: function(data) { $(data).dialog({ modal: true, width: 900, height: 600, resizable: false, title: thetitle, draggable: false, open: function(event, ui) { setTimeout('$(this).dialog("close");', 5000); } });
Why doesn't this close my dialog after 5 seconds? He does not do anything.
source share