我无法将按钮添加到此jQuery UI对话框。如果可能请给我一个例子。 谢谢。将按钮添加到jQuery UI对话框
<script type="text/javascript">
$(document).ready(function() {
//setup new person dialog
$('#dialog2').dialog({
autoResize: true,
show: "clip",
hide: "clip",
height: 'auto',
width: '1000',
autoOpen: false,
modal: true,
position: 'top',
draggable: false,
title: "انتخاب درخواست",
open: function (type, data) {
$(this).parent().appendTo("form");
}
});
$('#viewfaktor').dialog({
autoResize: true,
show: "clip",
hide: "clip",
height: 'auto',
width: '1000',
autoOpen: false,
modal: true,
position: 'top',
draggable: true,
title: "مشاهده صورت ریز",
open: function (type, data) {
$(this).parent().appendTo("form");
}
});
$('#msgBox').dialog({
autoResize: true,
show: "clip",
hide: "clip",
height: 'auto',
width: 'auto',
autoOpen: false,
modal: true,
position: 'center',
draggable: false,
open: function (type, data) {
$(this).parent().appendTo("form");
}
});
});
function showDialog(id) {
$('#' + id).dialog("open");
}
function closeDialog(id) {
$('#' + id).dialog("destroy");
}
</script>
,你再看看我的问题。我有错误 – Shahin 2010-10-27 09:35:43
我没有添加你的代码,但我有语法错误! – Shahin 2010-10-27 09:37:40
啊。我省略了一个逗号。我更新了这个例子。 – 2010-10-27 09:42:21