jQuery-ui dialog - hide buttons using jquery

前端 未结 4 1314
-上瘾入骨i
-上瘾入骨i 2021-01-07 04:38

How do I remove/hide the \"Ok\" button dynamically using jquery?

$(\'#dialog-save\').dialog({
            autoOpen: false,
            modal: false,
                


        
4条回答
  •  悲&欢浪女
    2021-01-07 05:09

    Juste like this won't show the button :

    $('#dialog-save').dialog({
            autoOpen: false,
            modal: false,
            draggable: true,
            width: 275,
            height: 175
            }
        });
    

    And if you want to remove them after you have shown the dialog Maybe something like this;

    How can I disable a button in a jQuery dialog from a function?

提交回复
热议问题