One of the simplest validations on one of my sites has suddenly developed an error – it doesn’t show as an error, it just works incorrectly. This occurs in IE 6, but not Netscape. I haven’t yet been able to test it on earlier IE versions, but I wonder if anyone knows about a bug that might cause this.
This is all the validation involves:
// validate Cond. Inlet vs. Outlet
if (form.two.value < form.one.value)
{
alert(“The Condenser Outlet Temp. can not be less than the Condenser Inlet Temp.”);
form.one.focus();
return false;
}
This operates properly until the second value reaches 100, while the first remains under 100. In other words, if the first value is 85 and the second 99, the validation works. If the first value is 85 and the second is 100, I get the alert.
After both vaues pass 100, the validation again works properly.
Anyone have any ideas?
Thanks,
Tom McNeer