开发者

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

开发者 https://www.devze.com 2023-03-27 13:34 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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