jo-ka
Member
Hello,
I have a form with 2 date elements. One for starting date and other for end date.
Can you please point me the best way to have some validation rules like:
- Start date can't be less that today plus 10 days, this is, I can only select a start date 10 days ahead.
- End date must be greater or equal to start date.
I think it's possible to run this rules on form post, but it would be great tho have this rules running before the form post, maybe with AJAX or even JavaScript.
Any clue?
Thanks in advance.
I have a form with 2 date elements. One for starting date and other for end date.
Can you please point me the best way to have some validation rules like:
- Start date can't be less that today plus 10 days, this is, I can only select a start date 10 days ahead.
- End date must be greater or equal to start date.
I think it's possible to run this rules on form post, but it would be great tho have this rules running before the form post, maybe with AJAX or even JavaScript.
Any clue?
Thanks in advance.