When using the dialog pop-up box, you don’t want the X-off function in the upper right corner, just make a prompt message to display it.
I found some information online. Three solutions were found online: [The first one is available. 】
1.
The code copy is as follows:
$("#div1").dialog({
closeOnEscape:false,
open:function(event,ui){$(".ui-dialog-titlebar-close").hide();}
});
I don't want the user to close the pop-up box through the x button provided by jquery dialog. The purpose of this method is that unless I provide the close button, there is no way to close the dialog box.
2. Add dialogClass:"no-close" in the dialog ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3. Find the dialog pop-up box and find the "x" style, hide it ------$(".ui-log").hide(); (It is not easy to use after I have used it)