i have validation functions which is being called on onblur of respective input field. at the same time i am calling same validation functions with one say validateall() function and validateall() is being called on onsubmit.
now the problem is if some error has occured and i have corrected it and submit the form at that time onblur is being called which is preventing from calling onsubmit event.
this problem i am facing in Firefox only.
javascript:
function validateFormOnSubmit(theForm) 
{
vUsername(theForm.userName,document.getElementById('UError'));//this will return true or false depends on error occurrence. 
}
html:
<form name="form" onsubmit="return validateFormOnSubmit(this);">
<input type="text" id="userName" onblur="vUsername(this,UError);">
//UError is div id where i'll be printing error msgs.