Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <link href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
  <script src="https://code.jquery.com/jquery-1.11.3.js"></script>
  <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  </head>
<body>
  <p>
    No matter what date you select, the value will always be today :(
  </p>
  <label for="datepicker">Input</label>
  <input id="datepicker" />
  <div id="out"></div>
</body>
</html>
 
jQuery(function($) {
  $('#datepicker')
    .datepicker({dateFormat: "M yy"})
    .change(function() {
      $('p', '#out').css('opacity', '.5');
      $('#out').prepend('<p>' + $(this).datepicker('getDate') + '</p>');
    });
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers