Skip to content
Advertisement

How can I set endDate not to be earlier than startDate in calendar?

I have a calendar. It works perfectly.

Between endDate and startDate can be 365 days maximum, that works.

But if i choose startDate before endDate, I am able to select earlier date, but i shouldnt be able to do that… I just couldnt do it, can you help?

Here is the related code of it,

JavaScript

here is the html part,

JavaScript

Advertisement

Answer

Okay, finally I solved it, I needed to set minDate for popup2 calendar

JavaScript

this works.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement