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?

3
  • 1
    Try stackoverflow.com/questions/4002781/… Commented Jun 1, 2016 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. Commented Jun 1, 2016 at 19:04
  • @Thangaraja How does that help, the answers there show exactly what he's doing? Commented Jun 1, 2016 at 19:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.