Currently, I am facing an issue with validating numbers entered between two text boxes to ensure that the first number is not greater than the second number. The validation process seems to work fine for three-digit numbers (e.g., 800 - 900), but it fails when attempting to enter a range like 800 - 1000 even though it should be considered valid. Below is the code snippet I have been using:
function validate_range(num1,num2)
{
if(num2<num1)
{
alert("Invalid range");
return false;
}
}
I am unable to identify why this particular scenario is causing an issue. Any assistance would be greatly appreciated.