Add button to jquery ui dialog

后端 未结 4 1408
北恋
北恋 2020-12-14 19:42

I can not add button to this jquery ui dialog. if possible please give me an example . thanks.



        
4条回答
  •  旧巷少年郎
    2020-12-14 20:20

    $('#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");
        },
    
        buttons: { "OK": function() { $(this).dialog("close"); } } 
    });
    

提交回复
热议问题