jQuery (JavaScript code libraries) - dialog box

Configuration dialog box:

$("#add-user-modal").dialog({
      autoOpen: false ,    // this attribute when the dialog is invoked automatically open dialog window of time true. When the property is false, when beginning to hide the window, knowing .dialog ( "open") dialog window when it pops up. The default is: true. 
      resizable: false , // whether you can change the size of the dialog, the default is true, you can change the size. 
      Modal: to true , // whether to use window mode, the mode window opens, other elements of the page will not click until you close the modal window. The default is false is not a modal window. 
      width: 400,    // popup width 
      height: 200 is,    // pop-up height 
      position: "Center", // the position of the window 
      title: "Add User",   // popup title 
      Buttons: {
         "Submit": function () {
          addUser();
        },
        "取消": function() {
          $(this).dialog("close");
        },
      },
    });

 

Guess you like

Origin www.cnblogs.com/sengzhao666/p/11985437.html