You are here: irt.org | About | Feedback | 3029 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q533
Sent by
michel on July 31, 2001 at 14:47:20:
Comments:
Here is an example on how to use the script
<form>
<script>
function days_in_month (year, month) {
return 32 - new Date(year, month, 32).getDate();
}
now = new Date();
daysInMonth = days_in_month(now.getFullYear(),now.getMonth());
txt='<select name="days">';
for (i=1;i<=daysInMonth;i++) txt += '