Why does onBlur not work in mozilla?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • varun singh
    New Member
    • Feb 2011
    • 1

    Why does onBlur not work in mozilla?

    onBlur is not working in mozilla but working fine in IE
    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;
    } 
    }
    Last edited by Niheel; Feb 2 '11, 06:06 PM. Reason: code tags
  • JKing
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    Check your javascript errors.

    What is document.Servic ePricing.Enddat eCheck?

    Comment

    Working...