How to make onSelect for sertain date at Keith Wood datepicker plugin?
For example, how to make an alert only for Jan 7 and Oct 31?
I did next but it did not work:
var christmas = new Date(2013, 1 - 1, 7);
var halloween = new Date(2012, 10 - 1, 31);
$(function() {
$('#inlineDatepicker').datepick({
onSelect: function(christmas) { alert('The chosen date: ' + christmas); },
onSelect: function(halloween) { alert('The chosen date: ' + halloween); },
});
});