1

My jQuery:

$('#begindate').datepicker();
$('#enddate').datepicker();

The Begin and the enddate date shall not exceed the Date today.

And the enddate must not be before the begindate.

How do I set these limits with jquery datepicker?

Example if you first set the enddate, then the begindate limit would be the date enddate is set to.

1 Answer 1

2

did you mean http://jqueryui.com/demos/datepicker/#date-range ?

see the example http://jqueryui.com/demos/datepicker/date-range.html

and for your request you can combine with http://jqueryui.com/demos/datepicker/#min-max

Sign up to request clarification or add additional context in comments.

Comments

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.