I have a form with a date that is selected then they pick a date to repeat an action to. I need to make sure that the date they are repeating to is always greater than the frist date becuase I do not want to loop and repeat in the past ?
Here is what I tried but I get an alert on everything so I know it is wrong…
one_shiftdate is the repeat until date…and date is the start from date.
[code]
function TheFormCheck()
{
if (document.new_event.one_shiftdate.value != “”)
if (document.new_event.date.value > document.new_event.one_shiftdate.value)
{
alert(“The repeat date must be greater than the selected event date.”);
document.new_event.one_shiftdate.focus();
return false;
}
}
Thanks for any help with this