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)
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn