title: Check if a value is less than another one
body: <p>I know this might seem stupid but I'm having trouble checking 2 values against each other. The following codes I used them several times and they work, but on one instance it simply does weird things.
  On the front page I got:</p>
  
  <pre><code>&lt;input type=\"text\" name=\"v571\" id=\"v571\" value=\"\" size=\"18\"/&gt;
  &lt;input type=\"hidden\" name=\"v571a\" id=\"v571a\" value=\"140\"/&gt;
  </code></pre>
  
  <p>In the js script I have:</p>
  
  <pre><code>if( $('#v571').val() &gt; $('#v571a').val()) {
      $('#v571').addClass('error');
      error++;
  } 
  </code></pre>
  
  <p>These are the results:</p>
  
  <pre><code>if v571 betweem 100 and 140 -&gt; no error (should get no error)
  if v571 less then 100 -&gt; error (should get an error)
  if v571 bigger then 140 -&gt; error (should get an error)
  if v571 bigger then 140 , but the number starts with 1 (eg: 1000, 1200, 12312, 1xxx...) -&gt; no error (should get an error)
  if v571 is 1,10,11 it's ok (should get no error)
  if v571 is anything else less then 100 -&gt; error (should get no error)
  </code></pre>
  
  <p>I also got this that works perfect:</p>
  
  <pre><code>&lt;input type=\"text\" name=\"v572\" id=\"v572\" value=\"\" size=\"18\"/&gt;
  &lt;input type=\"hidden\" name=\"v572a\" id=\"v572a\" value=\"148\"/&gt;
  &lt;input type=\"hidden\" name=\"v572b\" id=\"v572b\" value=\"152\"/&gt;
  </code></pre>
  
  <p>and the js:</p>
  
  <pre><code>if( $('#v572').val() &lt; $('#v572a').val() || $('#v572').val() &gt; $('#v572b').val()) {
      $('#v572').addClass('error');
      error++;
  } 
  </code></pre>