onBlur is not working in mozilla but working fine in IE
Following is the code block:
Following is the code block:
Code:
<input type="text" name="EndDate*cnt*" size="12" value="*EndDate*" maxlength="12" *Edatestatus* onBlur="update_Dates(this,document.ServicePricing.EnddateCheck,document.getElementById('EndDate*cnt*').value,document.getElementById('EndDate*cnt*'));date_quantity_updated();">
function update_Dates(olddate, newdate, begdatval, enddatfield)
{
if ( olddate.name.charAt(0)== 'B')
{
alert('begin date vaidation');
sName = "Begin Date";
}
else
{
alert('end date vaidation');
sName = "End Date";
}
status= validate_date(olddate);
alert("status: "+status);
if (status > 0 )
{
document.ServicePricing.Dtvalidation.value="N";
alert('The ' +sName +' is Invalid');
olddate.focus();
olddate.select();
return false;
}
}
Comment