I am struggling to get a date of birth selection working.
I have three fields, day, month and year.
Day and Month are select fields.
I would like the day field to change according to the month selected with the page refreshing. So I would like 30 days available when month is April, June, July, Sept and Nov, 31 days for the other months apart from February with 28 (apart from leap year)
I have tried google but I can't find a lead to how I am supposed to sovle this.
Please help!
(note I am using php method to submit form when finished)
I have three fields, day, month and year.
Day and Month are select fields.
I would like the day field to change according to the month selected with the page refreshing. So I would like 30 days available when month is April, June, July, Sept and Nov, 31 days for the other months apart from February with 28 (apart from leap year)
I have tried google but I can't find a lead to how I am supposed to sovle this.
Please help!
(note I am using php method to submit form when finished)