setTimeOut(function() {
$("#alertdialog").dialog("close")
}, 5000);
javascript code to close alert box after displaying for a few seconds
setTimeOut(function() {
$("#alertdialog").dialog("close")
}, 5000);
javascript code to close alert box after displaying for a few seconds