Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <button id="opener">open dialog</button>
  <div id="dialog">
    <input id="autocomplete">
  </div>
</body>
</html>
 
$( "#dialog" ).dialog({
  autoOpen: false
});
$( "#autocomplete" ).autocomplete({
  source: [ "foo" ]
});
$( "#opener" ).on( "click", function() {
  $( "#dialog" ).dialog( "open" );
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers