I have created a form that populates a dropdown menu with the days of the month. Problem is I cannot get the days to display the leading zero on the days 1-9.
Code is below, so thanks a ton!
for (var i=0; i<31; i++)
dayfield.options[i]=new Option(i, i)
dayfield.options[today.getDate()]=new Option(today.getDate(), today.getDate(), true, true) //select today's day