Current location: Hot Scripts Forums » General Web Coding » JavaScript » Dropdown to list current year, and 74 years back


Dropdown to list current year, and 74 years back

Reply
  #1 (permalink)  
Old 10-01-04, 06:21 PM
APuppyDog APuppyDog is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Dropdown to list current year, and 74 years back

Hi, is it possible to create a dynamic drop down, which looks at the year on the server, eg. 2004

Then it populates a drop down list from 2004 and goes back 75 years

so dropdown would be like this

2004
2003
2002
2001
2000
...
...
...
1939

Then let's say the year change to 2005, then the last year would be 1940 so it would go from 2005 to 1940
Reply With Quote
  #2 (permalink)  
Old 10-01-04, 09:59 PM
4n7hr4x 4n7hr4x is offline
Banned
 
Join Date: Jun 2004
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
possible, but sort of pointless, its easier just to create an array, and once the new year starts just change the first, and last number, its easier, if u want me to explain more PM me
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:31 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.