Best way to remove the close button on jQuery UI dialog box widget?

后端 未结 2 1596
醉梦人生
醉梦人生 2021-02-04 01:23

What\'s the best way to remove the close button on the jQuery UI dialog box?

I do not wish people to be able to close the dialog box.

I\'m covering it on the cod

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 01:33

    I found another solution, works for me:

    $("#divID").dialog({
       closeOnEscape: false,
       open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
    });
    

提交回复
热议问题