Hey,
I have this code that displays a default year and and from a drop down menu 15 additional years from the default year.
The default year is 2000. I'd like to change it to the current year (2008) if it's possible and the fifteen additional years start from 2008.
Thanks.
[PHP] output += '</select> \n<select id="year">\n';
for(var i=0;i<=15;i++) {
n = (i<10)? '0'+i:i;
output += '<option value="20'+n+'" >20'+n+' </option>\n';
}
output += '</select> <a href="javascrip t:jumpTo()"><im g src="/calendar/images/calGo.gif" alt="go" />Go</a> <a href="javascrip t:hideJump()">< img src="/calendar/images/calStop.gif" alt="close" />Close</a>';
jump.innerHTML = output;
document.body.a ppendChild(jump );
}
[/PHP]
I have this code that displays a default year and and from a drop down menu 15 additional years from the default year.
The default year is 2000. I'd like to change it to the current year (2008) if it's possible and the fifteen additional years start from 2008.
Thanks.
[PHP] output += '</select> \n<select id="year">\n';
for(var i=0;i<=15;i++) {
n = (i<10)? '0'+i:i;
output += '<option value="20'+n+'" >20'+n+' </option>\n';
}
output += '</select> <a href="javascrip t:jumpTo()"><im g src="/calendar/images/calGo.gif" alt="go" />Go</a> <a href="javascrip t:hideJump()">< img src="/calendar/images/calStop.gif" alt="close" />Close</a>';
jump.innerHTML = output;
document.body.a ppendChild(jump );
}
[/PHP]
Comment