Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <link href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
  <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
  <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
  <script type='text/javascript'>
    $(function(){
      // Define an array to store your already selected Dates
      var selectedDates = [];
      
      // Set up your Datepickers to check if any of the selectedDates should be enabled
      $('.datepicker').datepicker({
          beforeShowDay: function(date){
            var td = date.getDay();
            var ret = [(date.getDay() == 1 || date.getDay() == 2),'',(td == 'Mon' || td == 'Tue')?'':'Only Monday and Tuesday'];
            return ret;
          }
      });
    })  
  </script>
</head>
<body>
  <input class='datepicker' /><br />
</body>
</html>
Output

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

Dismiss x
public
Bin info
rionmonsterpro
0viewers