Hi,
I have a form in which there is a field email
I have to test its valid format on field onblur event and on form submit.
Now for example
I have enter something invalid in the email text box and press tab ,
Now the onblur function works well and show alert message once that "invalid format"
but when I press enter on the email field instead of tab it shows the validation alert twice, means call both onblur and submit validation function.
Please help me in this
Regards,
I have a form in which there is a field email
I have to test its valid format on field onblur event and on form submit.
Now for example
I have enter something invalid in the email text box and press tab ,
Now the onblur function works well and show alert message once that "invalid format"
but when I press enter on the email field instead of tab it shows the validation alert twice, means call both onblur and submit validation function.
Please help me in this
Regards,
Comment