我正在尝试在jQuery UI对话框中添加一个按钮。现在我有这个:
$(function() {
$( "#dialog" ).dialog({
resizable: false,
width:1000,
height:500,
modal: true,
title: "Creating Your Account...",
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
text: "View Account Details"
click:function() {
$( this ).dialog().html( '' );//put some HTML here
}
}
});
});
对话框不会像这样工作。我希望按钮与另一个按钮相邻。使用此代码,对话框根本不起作用。