Yes, I know Java <> Javascript....
anyway: I have the following function that validates a date based on the component parts sent to it.
HTML Code:
function isValidDate(date, month, year)
{
var flagDate = new Date(year, month, date);
if (flagDate.getFullYear() != year || flagDate.getMonth() != month || flagDate.getDate() != date)
{
//alert("false")
return false;
}
else
{
//alert("true")
return true;
}
}
the problem I have is: The above function is called from another function and the "return false;" & "return true;" lines do not do what I want them to...
If the above function validates to false, I want to stop the function it was called from from continuing.
Hope that makes some sort of sense?
Thanks -GeorgeV