i have the following jquery i am trying to open a dialog after 10 seconds but i cant get it to open can soneone tell me what i am not doing right.
$(function () {
$("#dialog").dialog({
modal: true,
autoOpen: false,
resizable: false,
title: "jQuery Dialog",
width: 440,
height: 200,
});
function(){
window.setTimeout(function(){
$('#dialog').dialog('open')},3000);
}
});