Home > Web Front-end > JS Tutorial > js Dialog removes the X closing function in the upper right corner_javascript skills

js Dialog removes the X closing function in the upper right corner_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:51:29
Original
1942 people have browsed it

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.

Copy code The code is as follows:

$(" #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)
Related labels:
Statement of this Website
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
Latest Issues
Where is js written?
From 1970-01-01 08:00:00
0
0
0
js file code not found
From 1970-01-01 08:00:00
0
0
0
js addClass not working
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template