开发者

Dynamically show a range of years from 2000 to 2005 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜