I have used jquery dialog i want it to close automatically after say 2 seconds..How can i acheieve this ? i tried fadeout function but nothing works…
//Below Code will get executed if successful operation does not happen…below code is included in “Save” button of another dialog
window.parent.$('#divDialog').dialog('close');
window.parent.$('#divDialog').dialog('destroy');
window.parent.$('#divDialog').html(sMessage);
window.parent.$('#divDialog').attr('title', (((parseInt(response) != NaN)) ? 'Error' : 'Notice'));
window.parent.$('#divDialog').dialog({ show: "blind", modal: true, dialogClass: 'alert', zIndex: 99999 });
1 Answer