Dynamically show a range of years from 2000 to 2005 [closed]
Simple question:
Dynamically show range of years from 2开发者_如何学C000 to 2005.
Just text is perfect.
example
2000 2001 2002 2003 2004 2005
Thanks in advance
for (var i = 2000; i <= 2005; i++) {
$('#selectelement').append($('<option>' + i + '</option>'));
}
boy, rocket science sure does get more complicated every day...
精彩评论