JSFiddle - React, Tailwind, and code Playground
by badri09
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/redmond/jquery-ui.css">
<input type="text" id="fromdate"/>
<input type="text" id="todate"/>
JavaScript
var array = ["2014-11-19","2014-11-15","2014-11-16"]
$("#fromdate").datepicker({
minDate: '0',
dateFormat: 'yy-mm-dd',
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('yy-mm-dd', date);
return [ array.indexOf(string) == -1 ]
}
});
$("#todate").datepicker({
minDate: '0',
dateFormat: 'yy-mm-dd',
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('yy-mm-dd', date);
return [ array.indexOf(string) == -1 ]
}
});