500 points --- Matching Email and retype Email fields
Posted on 2004-10-09
The first function for Matching passwords is working perfectly... the second one for email is not.... Here is the code for both...
var Password, ConfPassword, Result;
Password = document.frmRegister.pwd.value;
ConfPassword = document.frmRegister.pwd2.value;
Result = document.frmRegister.txtResult;
if(Password == ConfPassword)
alert ("Passwords don't match - Try again!");
var Email, ConfEmail, Result2;
Email = document.frmRegister.email.value;
ConfEmail = document.frmRegister.email2.value;
Result2 = document.frmRegister.txtResult2;
if(Email == ConfEmail)
alert ("Emails don't match - Try again!");
I have same retype validation needed on the email fields also on the same form. I have modify the function for it. But can u tell me how to call 2 functions on a single on_click event of submit button?