Here is my problem: I have a pop up calendar that allows visitors to select a certain date. I also have a Drop Down list with five options. What I need to happen is that depending on what option is selected, the calendar disables certain days of the week based on the option that is chosen, BEFORE the form is submitted,
This is the applicable portion of the code:
<option value="01">Option 1</option>
<option value="02">Option 2</option>
<option value="03">Option 3</option>
<option value="04">Option 4</option>
<option value="05">Option 5</option>
<input readonly type="text" class="disable-days-67" name="delDate" size="9" maxlength="10" value="">
What I need to happen is for example, if the visitor selects Option 1, I need the calendar to automatically disable days 67… if Option2 I need to automatically disable days 1267… Option 3, 267… Option 4, 267… and Option 5, 67.
In other words, what I highlighted in bold red above needs to automatically change depending on what option is selected.
Can any one help? Is this even possible?
The reason for this is my Drop Down List is populated with Shipping Options but not all options are available on each day of the week. What I need is for the calendar to automatically disable certain days of the week based on their Shipping Method selection so that the visitor can’t select a date that is not available.
Hope that makes sense… Any help would be greatly appreciated. Thanks.