thendal
Programmer
- Aug 23, 2000
- 284
Hi All!
How can i check whether the entered password has atleast one alpha character(/([A-Z][a-z])/) and atleast one number(/\d/)....
I tried some thing like this ...
var s=document.f1.pwd.value;
if(s=/([a-z][A-Z][0-9])+/)
{
alert("please check your password");
}
its not working ...any advice will be greatly appreciated.
Thank you.
How can i check whether the entered password has atleast one alpha character(/([A-Z][a-z])/) and atleast one number(/\d/)....
I tried some thing like this ...
var s=document.f1.pwd.value;
if(s=/([a-z][A-Z][0-9])+/)
{
alert("please check your password");
}
its not working ...any advice will be greatly appreciated.
Thank you.