Answer Posted / bharani kumar
var ree;
ree=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(ree.test(document.formname.txt_email.value)==false){
alert("Enter valid email id");
document.formname.txt_email.value = "";
document.formname.txt_email.focus();
return false;
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the concept of “functions as objects” and how does this affect variable scope?
What is difference between promise and callback?
Explain the for-in loop?
What are undeclared and undefined variables?
What does 3 dots mean in javascript?
What is output of undefined * 2 in javascript?
What is innertext javascript?
Is javascript event driven?
What is dhtml in javascript?
What is a closure and how do you use it?
What does “1?+2+4 Evaluate to? What about 5 + 4 + “3??
What are events in javascript?
How do I open javascript on my iphone?
What is difference between local and global scope in javascript ?
How do you change the style/class on any element?