DenverMarc
Technical User
Hello,
I'm pretty new to javascript. I have an asp form and I'm using javascript for validation. One text field, PromoCode, has this:
The problem I have is that this is Case Sensitive. In other words "0508Test" is allowed, but "0508TEST" is not. I want to ignore the case. Can you help?
Thanks,
Marc
I'm pretty new to javascript. I have an asp form and I'm using javascript for validation. One text field, PromoCode, has this:
Code:
function ValidUserInput() {
if ($("PromoCode").value != "0508Test")
}
alert("The promo code you entered is not valid, please check your code and enter again.");
$("PromoCode").focus();
return false;
}
...
}
Thanks,
Marc