When using the dialog pop-up box again, I don't want the X in the upper right corner to close the function, but just display a prompt message.
I found some information online. I found three solutions online: [The first one is available. ]
1.
$(" #div1").dialog({
closeOnEscape:false,
open:function(event,ui){$(".ui-dialog-titlebar-close").hide() ;}
});
I don’t want users to close the pop-up box through the x button provided by jquery dialog. The effect of this method is that unless I provide a close button, there will be no How to close this dialog box.
2. Add dialogClass: "no-close" to dialog --------------- Block the X function in the upper right corner (I have used it but it doesn't work)
3. After finding the dialog pop-up box, find the "x" style and hide it -------$(".ui-log").hide(); (I have used it but it is not good either) use)