向jQuery UI对话框添加按钮

时间:2015-04-23 23:28:13

标签: jquery html jquery-ui

我正在尝试在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
        }
      }
    });
  });

对话框不会像这样工作。我希望按钮与另一个按钮相邻。使用此代码,对话框根本不起作用。

0 个答案:

没有答案