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
Why do you need javascript?
What is difference between arrow function and normal function?
What is escape & unescape String functions in JavaScript?
What value does prompt() return if the user clicked the cancel button?
Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases
What is difference == and === in javascript?
What is the difference between undefined value and null value?
why we need java instead of c
Is Javascript a Functional Programming Language?
Name the two functions that are used to create an HTML element dynamically?
Some XYZ company is arranging for online aptitude tests. Draw detailed E-R diagram for the same..
Why global variables are bad javascript?
Explain promise in javascript?
Why is javascript so popular?
How can javascript be used to improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?