I have a date field on a form. The date in the date field has to be after today’s date and not in the past. It also has to be within 30 days from today’s date. So if today is 15/01/2013, then the form can only accept any date within 30 days after the 15/02/2013, so the 14/04/2007 plus 30 days!
Can any please help with the correct Javascript code? I’m an amature and don’t have a clue on how to achieve this.
I guess you need something like this: http://jsfiddle.net/hqNxW/1/
And the code…
JavaScript
HTML