 |
|
Code (JavaScript)
// list of dates to highlight
var dates = [
[2011, 8, 1],
[2011, 8, 9],
[2011, 8, 25]
];
$('#datepicker').datepicker({
beforeShowDay: function (date){
var year = date.getFullYear(), month = date.getMonth(), day = date.getDate();
// see if the current date should be highlighted
for (var i=0; i < dates.length; ++i)
if (year == dates[i][0] && month == dates[i][1] - 1 && day == dates[i][2])
return [false, 'ui-state-highlight'];
return [false];
}
});
http://www.techtricky.com/jquery-datepicker-how-to-mark-the-holidays-on-calendar/
|
 |
 |
 |
 |
Date :
2018-05-31 13:49:44 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |