Hi every one
my question is that i want to validate the form when any one wants to login or sign Up i want to check that the email address is correct or not means that email address include '@' char or not if not an error message should be displayed other wise not. i write the script but the problem is that it show alert message on each char, i want it will alert only one time here the script which i wrote.
for(var i = 0; i < email.length ; i++)
{
if(email.indexOf[i] == "@" )
returnValue = true ;
else
{
returnValue = false;
alert("This is not a valid Email address, Please try again.")}
}
waiting for your reply with script