469,936 Members | 2,402 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,936 developers. It's quick & easy.

Why does onBlur not work in mozilla?

onBlur is not working in mozilla but working fine in IE
Following is the code block:
Expand|Select|Wrap|Line Numbers
  1. <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();">
  2.  
  3. function update_Dates(olddate, newdate, begdatval, enddatfield)
  4. {
  5.  
  6. if ( olddate.name.charAt(0)== 'B')
  7. {
  8. alert('begin date vaidation');
  9.     sName = "Begin Date";
  10. }
  11. else 
  12. {
  13. alert('end date vaidation');
  14.     sName = "End Date";
  15. }
  16. status= validate_date(olddate);
  17. alert("status: "+status);
  18. if (status > 0 )
  19. {
  20.     document.ServicePricing.Dtvalidation.value="N";
  21.     alert('The ' +sName +' is Invalid');
  22.     olddate.focus();
  23.     olddate.select();
  24.     return false;
  25. }
Feb 2 '11 #1
1 1427
JKing
1,206 Expert 1GB
Check your javascript errors.

What is document.ServicePricing.EnddateCheck?
Feb 2 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Dennis Hueckelheim | last post: by
1 post views Thread by anand basha | last post: by
1 post views Thread by 20002937 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.