I'm not sure how to ask this, but is there a way to get the current local full year and then create a loop to get the last 18 years and print them to the screen?
Here is what I've tried...
function allYears(){
var d = new Date();
var y = d.getFullYear();
var years = '';
for(var i=0; i>18; i++){
years += '<option value="'+y+'">'+y+'</option>';
y = y-1;
}
return(years);
}