lozkane
Technical User
- Oct 10, 2010
- 3
thread216-1583849
I am following the script on this thread to get a date selector working. Works beautifully to populate the day field after but does not fill the year field options.
Can you see the error?
Firebug reports:
e is null
[Break On This Error] e.add(s);}}
This is the 'year' part of the script:
var y = 2010;
while (y-->1909){
var s = document.createElement('option');
var e = document.getElementById('year');
s.text=y;
s.value=y;
try{
e.add(s,null);}
catch(ex){
e.add(s);}}
Thanks, laurie
I am following the script on this thread to get a date selector working. Works beautifully to populate the day field after but does not fill the year field options.
Can you see the error?
Firebug reports:
e is null
[Break On This Error] e.add(s);}}
This is the 'year' part of the script:
var y = 2010;
while (y-->1909){
var s = document.createElement('option');
var e = document.getElementById('year');
s.text=y;
s.value=y;
try{
e.add(s,null);}
catch(ex){
e.add(s);}}
Thanks, laurie