Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <link href="//code.jquery.com/ui/1.11.2/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.2/jquery-ui.min.js"></script>
</head>
<body>
  <button id="opener">Sent later</button>
  <div id="wrapper"> 
    <input type="text" id="dummyDate" />
    <p>Please, enter the date to send your message.</p>
    Enter date: <input type="text" id="myDate" />
  </div>
</body>
</html>
 
$('#wrapper').dialog({
  autoOpen:false,
  title: "Select",
  buttons: [
    {
      text: "Close",
      click: function() {
        $(this).dialog("close");
      }
    },
    {
      text: "Save",
      click: function() {
        // какие-то действия при нажатии на кнопку 2.
      }
    }
  ]
});
$('#opener').on("click", function() {
  $('#myDate').datepicker({title:'Test Dialog'});
  $('#wrapper').dialog('open');
  return false;
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers