thanks a plenty for responding back.
now i got the error rectified but facing another problem :-( this
function works well but somehow when i write a@gdhd it accepts it! i
feel it should search for a "." at least?? am i right in my thots or
not? if i write a@fhh then it gives the error message!
here is hte piece of code:
if (document.f.repemail.value != ""){
if(!(test(document.f.repemail.value))) {
alert("Please Enter a valid Email ID!");
document.f.repemail.focus();
return;
}
}
function test(src)
{ var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
var regex = new RegExp(emailReg);
return regex.test(src);
}
pls pls do sugest..i am confused
thanks
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!