i am using the following javascript validation to ensure that a open date is greater than a close date. However i have just discovered that the .value check is not successfully working as it does not interpretate 01/10/04 as being greater than 28/09/04 for example. The check successfully occurs however for open/close dates from the same month.any suggestions please!?
if(theForm.p_close_date.value!=0)
{
if (theForm.p_open_date.value > theForm.p_close_date.value)
{
alert("The close date entered is invalid");
theForm.p_close_date.focus();
return false;
}
}
return true;
}
</script>
if(theForm.p_close_date.value!=0)
{
if (theForm.p_open_date.value > theForm.p_close_date.value)
{
alert("The close date entered is invalid");
theForm.p_close_date.focus();
return false;
}
}
return true;
}
</script>