Javascript to display a list of years and a list of months and use the selections to build a filename of a pdf document to be displayed
I want to use Javascript to display a list of years and a list of months and use the selection from each to build a filename in the format month_year.pdf
and then display the file.
I also need the option to reset the choices so that a different file may be chosen. For two of the years (2001 and 2006) only one option is available (January and December respectively) so no month selection is required.
All twelve months apply to all the other years. Being new to Javascript, I am struggling somewhat with this so any help would be greatly appreciated and thank you in advance.
Java Script to display a list of years and a list of months and use the selections to build a filename of a pdf document to be displayed
I want to use Java Script to display a list of years and a list of months and use the selection from each to build a filename in the format month_year.pdf and then display the file. I also need the option to reset the choices so that a different file may be chosen. For two of the years (2001 and 2006) only one option is available (January and December respectively) so no month selection is required. All twelve months apply to all the other years. Being new to Java Script, I am struggling somewhat with this so any help would be greatly appreciated and thank you in advance.