Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <link href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
<dialog id="draggable" class="ui-widget-content">
    <p>Drag me around</p>
</dialog>
</body>
</html>
 
$(function(){
  var dialog = $('dialog');
  dialog[0].show();
  var offset = dialog.offset();
  dialog
    .css('margin', 0)
    .offset(offset)
    .draggable();
})
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers