title: Javascript validation to check number range not working for 4 digit numbers
body: <p>I am trying to validate numbers entered between two text boxes for their range where first number cannot be greater than the second number. The validation works for numbers with three digits (for ex. 800 - 900), when i try to enter 800 - 1000 it returns false even if this case is valid.
  My code goes here:</p>
  
  <pre><code>    function validate_range(num1,num2)
      {
         if(num2&lt;num1)
         {
            alert("Invalid range");
            return false;
         }
      }
  </code></pre>
  
  <p>I am not able to figure out why this happens. Please help.</p>