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
How to create array in JavaScript?
Where is javascript used most?
Which is better python or javascript?
Write JavaScript code to use file system in binary format?
Is javascript becoming obsolete?
What is event bubbling in the dom?
Can I learn javascript without html?
what is the difference between wrappers and primitives es: diff between int i=200 in primitives and integeri = new integer(54)
What are the different types of errors in javascript?
How to replace all occurrences of a string in JavaScript?
What kind of conditional statements does JavaScript support?
Explain how to read and write a file using javascript?
Where do you write javascript?
What is the use of spread operator?
what is pop()method in JavaScript?