Javascript dropdown change - TechRepublic
General discussion
May 4, 2006 at 08:38 AM
iheatseekeri

Javascript dropdown change

by iheatseekeri . Updated 20 years, 2 months ago

I’m sure this is probably very easy, but…
I have a list of different charts that can be viewed by the user.
Each chart is listed in a select list (there’s about 30 charts, the select shows 10 at a time).
Below the main select is a dropdown select.
Each chart has a different initial starting year.
Depending on which chart a person selects, should change the starting year.
Right now I have a chart which has an initial year of 1967. Next to that is a chart that has an initial year of 1978. When I click on the ’78 chart, the year drop down switches to 1978, but the years 1967-1977 move to the end of the list (after 2006, then 67-77 show up).
Question: how can I clear that from showing up?

This discussion is locked

All Comments