I have two input's one for start date and one for end date, I need to create a condition in javascript
(jquery) if the interval is less than a month, eg: I'll disable a button if the interval is less than 1 month.
Follow my current code: Here.
Note: I could not make the code work right here in the post, if someone can edit it, thank you.
UPDATE I've been using the friend's tip below, I've only made some adjustments to fit my need Here