parent-div 对话框的代码:
$("#parent-div").dialog({
title: 'Parent',
width: parseInt(100, 100),
height: parseInt(190, 10),
modal: true,
buttons: [
{
text: "Cancel",
click: function () {
$(this).dialog("close");
}
},
{
text: "Save",
click: function () {
$(this).dialog("close");
}
}
]
});
child-div 对话框的代码:
<div id="child-div"></div>
如何在 Jquery 对话框中将子 div 以及已添加的按钮保存和取消插入到父 div 中?