jQuery中的对话框 [英] dialog in jQuery

查看:173
本文介绍了jQuery中的对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个对话框代码

// load dialog to user signup
function new_user_signup()
{
    $.get("/actions/_new_user_account.php",
    function(data){
        $("#dialog").html(data);
    });
    $("#dialog").dialog({ width: 400,resizable: false, position: 'top', draggable: false,     title: 'Opret profil' });
}

如果我点击右上角的X图标,并尝试打开我的再次对话,我不能。

if I click on X icon in the top right, and try to open my dialog again, i can't.

如何再次打开对话框

推荐答案

您必须使用打开方法重新打开该对话框:

You must use the open method to reopen the dialog:

$("#dialog").dialog('open');

这篇关于jQuery中的对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆