How to make email validation in javascript?My field name is Mem_Email.Thank for advance!
I was faced the validation of email form javascript problem that require member insert the their email address correctly.I have try many example and solution found online but all useless cant run at my program.My field name is "Mem_Email" and I combine all the validate filed in one function (function validate()).Other validate are running normal just left email validate is not function yet.Help me please and Thanks of your advance!!!
Status:
Open Jun 21, 2010 - 11:34 PM
JavaScript, forms, email, validation, text/javascript
2answers
Answers
Aug 09, 2010 - 02:35 AM
Hi Jackscorpion88,
Could you please paste the validate function code so I can see what is wrong with it.
Aug 09, 2010 - 07:24 PM
Following code is success store inside database but just a normal validation only,what i wish is validation for email format which include validate "@","." Thanks for advice!
if (document.frm.Mem_Email.value=="" || !(isNaN(document.frm.Mem_Email.value)))
{
alert("Please Enter a Valid Email Address!");
document.frm.Mem_Email.focus();
return false;
}
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment