I have two links that let the user cycle through the date field.
Code: Select all
<a href="#" onclick="shiftDate(1, 'down');">Previous</a>
<a href="#" onclick="shiftDate(1, 'up');">Next</a>Code: Select all
function shiftDate(days, up_or_down)
{
date = new Date(document.getElementById('date').value);
if (up_or_down == 'up') {
date.setDate(date.getDate() + days);
} else {
date.setDate(date.getDate() - days);
}
document.getElementById('date').value = (date.getMonth()+1)+"/"+date.getDate()+"/"+date.getFullYear();
GetSchedule();
return false;
}Code: Select all
<select name="time" id="time" style="width:150px">
<option>Select Time</option>
<option value="9:00">Morning</option>
<option value="12:00">Afternoon</option>
<option value="16:00">Evening</option>
<option value="22:00">Late</option>
</select>
Is this possible? I cant seem to get this functionality working