I wish to do something like this:
var showme = false;
$(\'#mydatepicker\').datepicker({
beforeShow: function(input, inst) {
if(!showme) {
Since this patch has not been merged in, I was able to come up with a hack that works pretty well. Let me know what you think:
beforeShow: function(){
var start = $('#dtFrom').val()
if($.trim(start)!=''){
start = $('#dtFrom').datepicker('getDate');
$('#DateToDisplay').datepicker('option', 'minDate', new Date(start.getTime()));
}
},
onClose: function() {
var start = $('#dtFrom').val()
if($.trim(start)==''){
alert('Error! Please select a start date\/time prior to setting the date to display.');
$('#DateToDisplay').val('')
}
}