how to prevent the selection of date in the past in datepicker code example Example: jquery datepicker no past dates $("#datepicker").datepicker({ minDate: 0 });