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
Explain how to detect the operating system on the client machine?
Can javascript code be broken in different lines?
What is enum data type?
List out the different ways an HTML element can be accessed in a Javascript code?
hi i want validations for two drop down lists. when user enter to second list by skipping first list alert box should appear.