Use to dialog pop-up box, do not want to the upper right corner of the X off function, just do a hint message display, the following is the specific removal method, we can refer to the next
When you use the dialog popup, you do not want the X-closing function in the upper-right corner, just a hint message to display.
Found some information on the Internet. Three solutions were found online: "The first is available." 】
1.
The code is as follows:
$ ("#div1"). Dialog ({
Closeonescape:false,
Open:function (Event,ui) {$ (". Ui-dialog-titlebar-close"). Hide ();}
});
You do not want users to turn off the popup box by using the X button provided by jquery dialog, which means that the dialog cannot be turned off unless I provide a close button.
2, Dialog Add Dialogclass: "No-close"---------------shield off the upper right corner of the X function (I used a bad use)
3. Find the dialog pop-up box and find the "X" style, hiding the-------$ (". Ui-log"). Hide (); (I don't use it too well.)
Transferred from: http://www.jb51.net/article/49286.htm
JS Dialog Remove the X close function in the upper right corner