我可以从文件A打开模式窗口并在模式窗口上显示文件B吗? [英] Can i open a modal window from file A and displaying file B on the modal window?

查看:38
本文介绍了我可以从文件A打开模式窗口并在模式窗口上显示文件B吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Jquery模态形式的示例:

I am studying the Jquery modal-form example :

http://jqueryui.com/dialog/#modal-form

是否可以从文件A打开模式窗口并在模式窗口上显示现有文件B?

Is it possible to open a modal window from file A and displaying an existing file B on the modal window ?

先感谢

推荐答案

HTML

<div id="dialog_form"></div>

jQuery

$('#create-user').click(function() {
    $('#dialog_form').dialog(
    {
        open: function() {
            $(this).load('form_new.html');
        },
        modal: true
    }
    );
    $('#dialog-form').dialog('open');
});

这篇关于我可以从文件A打开模式窗口并在模式窗口上显示文件B吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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