How can I construct this drop down box with the 31 numbers in a month (1 to 31) without typing out each individual option thirtyone times? I have tried the following but it writes the numbers 'across' the dropdown window and not 'down'. Thanks.
<select name="ddSubscribe" size="1">
<option value="day">dd</option>
<option value="day">
<script type = "text/javascript">
for(var count=1; count<=31; count++) {
if(count<10) {
count = "0" + count;
}
document.write(count + '\n');
}
</script></option></select>
<select name="ddSubscribe" size="1">
<option value="day">dd</option>
<option value="day">
<script type = "text/javascript">
for(var count=1; count<=31; count++) {
if(count<10) {
count = "0" + count;
}
document.write(count + '\n');
}
</script></option></select>
