/* Check the Customer Email for invalid format */
var customer_email = document.forms[“customer_details”][“customer_email”].value;
var at_position = customer_email.indexOf(“@”);
var dot_position = customer_email.lastIndexOf(“.”);
if (at_position=customer_email.length) {
alert(“Given email address is not valid.”);
return false;
}
}
// ]]>
Leave a Reply
You must be logged in to post a comment.
No comments yet.