compare between input value with 0 trail
<p>I found that when jQuery get a value with 0 (for example 100)trail, it will omit it. So if I compare 5>100, the result is true. So how do I solve this?
here is the HTML code:</p>

<pre><code>&lt;form id="target"&gt;
    &lt;input type="text" id="max"  value="100"/&gt;
    &lt;input type="text" id="number" /&gt;
    &lt;input id="submit" type="submit" value="submit" /&gt;
&lt;/form&gt;
</code></pre>

<p>And here is jquery:</p>

<pre><code>$('#target').submit( function() {
  var a = $("#number").val();
  var b = $("#max").val();
  if( a &gt; b){
     alert("exceed limit"); 
  }

return false;
});
</code></pre>

<p>Here you can see demo: <a href="http://jsfiddle.net/yqMGG/91/" rel="nofollow">http://jsfiddle.net/yqMGG/91/</a></p>
