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.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
  
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
  <style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  div {font-size: 0.7em}
 td.highlight {
    background-color: red;
    border: 1px blue solid;
}
</style>
</head>
<body>
<div class="demo"> 
 
<p>Date: <input type="text" id="datepicker"></p> 
 
</div><!-- End demo -->
</body>
</html>
 
// April 30,2014 and May 1, 2014 are disabled
var disabledDates = ['12/30/2014', '12/24/2014'];
$(function(){
    $('#datepicker').datepicker({
      beforeShowDay: $.datepicker.noWeekend
    });
  function editDays(date) {
    
        for (var i = 0; i < disabledDates.length; i++) {
            if (new Date(disabledDates[i]).toString() == date.toString()) {                  
                 return [false, "akljsdfl;jkaf"];
            }
        }
        return [true];
  }   
});
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers