jQuery UI & Dialog: Basic Dialog Box

This entry is part 1 of 6 in the series jQuery UI Dialog

jQuery UI Dialog – Default functionality

The basic dialog window is an overlay positioned within the page and is protected from page content (like select elements) shining through with an iframe.

It has a title bar and a content area, and can be moved, resized and closed with the ‘x’ icon by default.

<!doctype html>
<html lang='en'>
    <meta charset='utf-8'>
    <title>jQuery UI Dialog - Default functionality</title>
    <link rel='stylesheet' href='//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css'>
    <script src='//code.jquery.com/jquery-1.9.1.js'></script>
    <script src='//code.jquery.com/ui/1.10.4/jquery-ui.js'></script>
    <link rel='stylesheet' href='https://codecrawl.com/code/jqueryui/jqueryui_style.css'>
        $(function () {

<div id='dialog' title='Basic dialog'>
    <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized
        and closed with the 'x' icon.</p>

Try The Code

Series Navigation
jQuery UI & Dialog: Modal Dialog Box Alert >>