function ValidateDate()
{
var fd=document.getElementById ('FromDate_txtDate');
var td=document.getElementById ('ToDate_txtDate');
if (Date.parse(fd.value) > Date.parse(td.value)) {
alert("Invalid Date Range!\nFrom Date cannot be after To Date!")
return false;
}
}
No comments:
Post a Comment