Results 1 to 1 of 1
Oct 21, 2013, 15:49 #1
- Join Date
- Apr 2004
- 0 Post(s)
- 0 Thread(s)
Write Dates to DropDown List Between Two Exsiting Dates
I am not sure how to accomplish this. I currently have a predetermined start date and end date. I want to be able to take the start date and add it to a dropdown select list and autofill the <option> values for all dates between the start and end date. Basically the JS would build a dynamic dropdown list based on these two dates.
I also require one variable, the start and end dates are check-in and check-out dates for a hotel room. So the check-in (start date) dropdown should auto-populate with my predetermined start date to the pre-determined end date and the check-out date would be the variable where it should auto-populate the dropdown list based on +1 day; since the guest can not checkin and checkout on the same day the checkout must be +1 of my pre-determined dates.
In total there are two dropdown select lists, check-in runs normally and check-out is +1 of the pre-deteremined dates.
I hope this makes sense and that someone can help me.