zy_abc Posted May 2, 2003 Posted May 2, 2003 I am comparing two password fields using javascript. But i am not able to do so. Can you please help me out and tell me where have i gone wrong. function chked() { var error=0; name1=document.form1.newpass.value; name2=document.form1.confirmpass.value; if (name1 != name2) { alert ("\nThe entries do not match. Please re-enter.") return false; } else return true; } Quote Thanks & Regards, zy_abc
*Gurus* divil Posted May 2, 2003 *Gurus* Posted May 2, 2003 This is not a Javascript forum. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.