Using the Dialog Widget

The jQuery UI dialog widget creates a floating window with a title and content area, similar to the kind of dialog you might see from a native application. Dialogs are useful for focusing the user’s attention on an important event or message. However, as with any element that can obscure the document content, the dialog must be used sparingly and only when displaying the content inside the document layout isn’t feasible.