Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>?</title>
  <link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" rel="stylesheet" type="text/css">
  <script class="jsbin" src="http://code.jquery.com/jquery-1.5.js"></script>
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.js"></script>
</head>
<body>
  <button>open</button>
  <div id="dialog">I'm a working dialog</div>
  
</body>
</html>
 
$( "button" ).click(function() {
  $( "#dialog" ).dialog( "open" );
});
$( "#dialog" ).dialog({
      hide: 'explode',
      show: 'drop',
      width: 'auto',
      maxWidth: 800,
      maxHeight: 400,
      resizable: false,
      draggable: false,
      title: 'Alert',
      modal: true,
      buttons: {
        Ok: function() {
          $(this).dialog('close');
        }
      }
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers