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.10.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css">
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.js"></script>
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.js"></script>
  <style>
    .someDate {}
  </style>
  </head>
<body>
  <div id="dialog">
     <input  class="someDate">
    <input id="datepicker" class="someDate">
  </div>
  
  <button id="opener">open</button>
  
</body>
</html>
 
$( "#dialog" ).dialog({
  modal: true,
  autoOpen: false
});
$( ".someDate" ).datepicker();
$( "#opener" ).click(function() {
  $( "#dialog" ).dialog( "open" );
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers