The problem is that when I clear the dates (by deleting the textbox values), th
you just need to set the options again to null:
dates.datepicker( "option" , { minDate: null, maxDate: null} );
I've changed your jsfiddle: http://jsfiddle.net/tF5MH/9/