I'm facing an issue with my change password screen. It seems to work fine in IE8 and IE7, but the save button fails to enable in IE6 when the passwords match.
var LblError = document.getElementById('ctl00_cphValNet_LblError');
var Pwd1 = document.getElementById('ctl00_cphValNet_txtNewPassword')
var Pwd2 = document.getElementById('ctl00_cphValNet_txtNewPassword2')
var Change = document.getElementById('ctl00_cphValNet_BtnUpdatePassword')
// code to check if password matches
Change.disabled = false;
Any insights on why this discrepancy is occurring?
Sp
Could it be related to the RegEx usage causing the trouble?
function IsalphaNumericValidate(alphanumericChar) {
if (alphanumericChar.length < 6 || alphanumericChar.search(/[^a-zA-Z0-9 ]/g) != -1) {
return false;
}
else {
var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;
return re.test(alphanumericChar);
}
}