Is there any way I can have the beforeShow method of the datepicker prevent it from showing in certain cases?
example:
.datepicker({ showOn: 'both', buttonImage: 'images/calendar.gif', buttonImageOnly: true,
beforeShow: function(input, inst) {
if (input.disabled || someRandomCheck) {
//don't show it
}
}
});
Thanks,
Colin