JS Dialog Remove the X close function in the upper right corner

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.