jquery UI dialog to implement window effects

Source: Internet
Author: User

Today we use the JQuery UI dialog to do a window effect. Let's look at the screenshot of the effect first:

We can see, click, the window appears, and the window is centered, or can be dragged ... To achieve all this, as long as the following code:

We can see that my pop this div, the way to achieve is to let it not AutoOpen, click on the time, I just a dialog,open to do, with the help of the jquery UI, we do the window is so simple ... Of course, as you can see, I also have a feature that inserts data, and I use the appendto of jquery:

I first get the value through the variable, then build an HTML tag, and then appendto into the table, so that everyone can see the insertion of data, of course, this is not a database ... You remember, with the help of the Juqery UI, a dialog, we can implement the drag-style pop-up window ...

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.