Auto Year | JavaScriptSource

Auto Year

Don Demrow Jan 25, 2001


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


  • 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


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


Paste this code into the BODY section of your HTML document

Leave a Response


It works for me using FF 2.

Lee Oct 31, 2008

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

Ron Sep 15, 2008

Works great and so easy to mod & style

Derek Fielding Jul 4, 2008

This is Very good. It helped me a lot.

Harikrishna Mar 25, 2008