Hi all
I want to make sure that my password field should contain numbers as well as letters
i am using something like
function isAlphabet(elem, helperMsg){
var alphaExp = /^[a-zA-Z]+$/;
if(elem.value.match(alphaExp)){
return true;
}else{
alert(helperMsg);
elem.focus();
return false;
}
}
but it does nothing when there are letter in field but not numbers, same when contains numbers but not letters.
so , how to make sure it asks for both , i mean i want to force user to enter letters and numbers both as mandate.
thanks in advance,