S
Sjaakie
Hi there,
I'm trying to get this working with Firefox. Can you point out what's
wrong? No problems with IE, Firefox doens't fill selMonth...
TIA
<select name="selDay" id="selDay" style="width:50;" ></select> -
<select name="selMonth" id="selMonth" style="width:50;"></select> -
<select name="selYear" id="selYear" style="width:75;"></select>
<script language="JavaScript">
function initDateSelect() {
for (x=1; x<32; x++) {
document.getElementById('selDay').options[x-1] = new Option(x,x); }
for (x=1; x<13; x++) {
document.getElementById('selMonth').options[x] = new Option(x,x); }
for (x=1920; x<2020; x++) {
document.getElementById('selYear').options[x-1920] = new Option(x,x); }
}
initDateSelect();
</script>
I'm trying to get this working with Firefox. Can you point out what's
wrong? No problems with IE, Firefox doens't fill selMonth...
TIA
<select name="selDay" id="selDay" style="width:50;" ></select> -
<select name="selMonth" id="selMonth" style="width:50;"></select> -
<select name="selYear" id="selYear" style="width:75;"></select>
<script language="JavaScript">
function initDateSelect() {
for (x=1; x<32; x++) {
document.getElementById('selDay').options[x-1] = new Option(x,x); }
for (x=1; x<13; x++) {
document.getElementById('selMonth').options[x] = new Option(x,x); }
for (x=1920; x<2020; x++) {
document.getElementById('selYear').options[x-1920] = new Option(x,x); }
}
initDateSelect();
</script>