Welcome Guest, Not a member yet? Register   Sign In
[Solved] Populate select dropdown with correct number of days when select month.
#2

(12-21-2015, 01:52 AM)wolfgang1983 Wrote: What I would like to know is how am so that when I select a month it will populate the select day div with the correct number of days because some months shorter than others?

You could check this:
Code:
month = 1, 3, 5, 7, 8, 10, 12 => 31 days
month = 4, 6, 9, 11 => 30 days
month = 2 => if this year is leaf year => 29 days else 28 days
Reply


Messages In This Thread
RE: Populate select dropdown with correct number of days when select month. - by pdthinh - 12-21-2015, 03:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB