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.8.5/themes/base/jquery-ui.css" rel="stylesheet" type="text/css">
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.js"></script>
</head>
<body>
  <input id="datepicker">
  
</body>
</html>
 
 var theDatePicker = $("#datepicker");
function ClearFilter()
{
  setTimeout(function () {
   
          var buttonPane = theDatePicker
              .datepicker("widget")
              .find(".ui-datepicker-close").click(function () {
                $.datepicker._clearDate(theDatePicker);
              });                                                 
              }, 1);
}
theDatePicker.datepicker({
      showButtonPanel: true,    
      closeText: 'Clear filter',
      beforeShow: function (input) {  ClearFilter();
        
      
      },
  onChangeMonthYear: function(year, month, input){ClearFilter();
      
      }
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers