0

Using a simple datepicker that limits input to be past only:

$( ".datepicker.past" ).datepicker({
    maxDate: "0d"
});

I do not want to disable manual entries, but I do need the manual entry to conform to the datepicker limits. What's the easiest / best way to achieve this?

TH1981
  • 3,105
  • 7
  • 42
  • 78
  • 1
    Try http://stackoverflow.com/questions/4002781/disable-future-dates-in-jquery-ui-datepicker – Thangaraja Jun 01 '16 at 19:01
  • The datepicker widget only controls what happens when you use it, it doesn't override manual entries. So either disable manual entries, or use your own Javascript validation to check it. – Barmar Jun 01 '16 at 19:04
  • @Thangaraja How does that help, the answers there show exactly what he's doing? – Barmar Jun 01 '16 at 19:05

0 Answers0