
February 26th, 2004, 06:03 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
dynamic date genration in drop down menu's from predefined months
hi,
i am getting confused with this situation of generating drop down menu's for an online reservation. here is the situation of the schedule/categories. - 1st semester starts in JUNE and ends in OCTOBER
- 2nd semester starts in NOVEMEBER and ends in MARCH
- summer class starts in APRIL and ends in MAY
if the current date falls in a particular range stated above, the drop down menu for the Month fields must only contain the current month, plus the "end month" for its range. ex: if the month now is january, the drop down menu for the month field must only contain January, Februray and March.
upon selection of the month in the drop down, the Day field is automatically filled with all the possible dates for the month except for Sunday. ex: if the year now is 2004 and the month is January, the days that will appear are 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, etc... (notice that Sundays are skipped)
your help is highly appreciated regarding this problem.... its a real pain in the head for me, being very new to javascript...
|