I having one div that id is dialog-form while user can click the button that time the dialog is open its working fine but the problem is while page load the dialog div is appeared because autoOpen option is true if i can set the option is false then dialog is visible at 3 seconds please some help friends. . .
$(function () {
$("#create-user").click(function () {
$("#dialog-form").dialog("open");
});
var name = $("#name"),
email = $("#email"),
password = $("#password"),
allFields = $([]).add(name).add(email).add(password),
tips = $(".validateTips");
$("#dialog-form").dialog({
autoOpen: true,
height: 300,
width: 350,
modal: true,
buttons: {
"Create an account": function () {
//some operations
$(this).dialog("close");
}
},
Cancel: function () {
$(this).dialog("close");
}
},
close: function () {
allFields.val("").removeClass("ui-state-error");
}
});
});