No matter what I try, I\'m not able to get the beforeShow event to fire on my datepicker. Here\'s my code:
$(\'#calendar\').datepicker({
inline: true,
dateF
Have you assign datepicker() to this element before ?
beforeShow event attach to element once you assign datepicker() at first time.
If you reassign datepicker() to the same element then it will not work properly.
Try to 'destroy' and reassign datepicker() which is well work for me.
$('#calendar').datepicker('destroy');
$('#calendar').datepicker({
inline: true,
dateFormat: 'mm,dd,yy',
beforeShow: function(input, inst) {
alert('before');
}
});