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
[color=blue][color=green][color=darkred]
>>> the script... >>>[/color][/color][/color]
<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="JavaS cript">
function initDateSelect( ) {
for (x=1; x<32; x++) {
document.getEle mentById('selDa y').options[x-1] = new Option(x,x); }
for (x=1; x<13; x++) {
document.getEle mentById('selMo nth').options[x] = new Option(x,x); }
for (x=1920; x<2020; x++) {
document.getEle mentById('selYe ar').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
[color=blue][color=green][color=darkred]
>>> the script... >>>[/color][/color][/color]
<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="JavaS cript">
function initDateSelect( ) {
for (x=1; x<32; x++) {
document.getEle mentById('selDa y').options[x-1] = new Option(x,x); }
for (x=1; x<13; x++) {
document.getEle mentById('selMo nth').options[x] = new Option(x,x); }
for (x=1920; x<2020; x++) {
document.getEle mentById('selYe ar').options[x-1920] = new Option(x,x); }
}
initDateSelect( );
</script>
Comment