Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner


Developer Channel

FlashKit.com
JavaScriptSource
Developer Jobs
ScriptSearch
WebDeveloper.com
Webreference
HTMLGoodies
HTML5 Dev Center
Developer.com
jGuru.com
PHPBuilder

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

This pulldown menu will automatically adjust the range of years depending on the current year. As an added bonus, the range is easily modified.


Notes

  • Created by: Don Demrow
  • Posted: January 25, 2001

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoYear.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

3. From: Ron
Your demo
09/15/2008 11:10:28

Your demo doesn't work with Firefox. It makes ti unusable for our web sites but I like the idea... Any fix for Firefox?

4. From: Lee (Admin)
10/31/2008 15:26:56

It works for me using FF 2.

2. From: Derek Fielding
07/04/2008 06:31:32

Works great and so easy to mod & style

1. From: Harikrishna
Very Good
03/25/2008 11:30:08

This is Very good. It helped me a lot.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.