jQuery (JavaScript) 3 > 10 = true
<p>There seems to be some stripping issue with jQuery when retrieving integer values from input values.</p>

<p>My code:</p>

<pre><code>    // Control the rating input field to only accept numeric values
    // -else set the values back to 0
    // For the highest value:
    $('.dsListItem .firstItem').keyup(function(){
        if (isNumber($(this).val()) &amp;&amp; $(this).val() &lt; $('.dsListItem .lastItem').val()) {
            console.log('FIRST: ' + $(this).val() + ' &gt;&gt;&gt; ' + $('.dsListItem .lastItem').val());
            $(this).val($('.dsListItem .lastItem').val());
        }
    });
    // For the lowest value:
    $('.dsListItem .lastItem').keyup(function(){
        if (isNumber($(this).val()) &amp;&amp; $(this).val() &gt; $('.dsListItem .firstItem').val()) {
            console.log('LAST: ' + $(this).val() + ' &gt;&gt;&gt; ' + $('.dsListItem .firstItem').val());
            $(this).val($('.dsListItem .firstItem').val());
        }
    });
</code></pre>

<p>Safari Inspector tells me this:</p>

<p>LAST: 11 >>> 10</p>

<p>LAST: 2 >>> 10</p>

<p>LAST: 1 >>> 10</p>

<p>Only 0 and 1 are valid. If 10 is validated as "1", it should not pass 1 > 1 either, but yet it does.</p>

<p>I don't get it why the console.log() print shows the correct integers but when I calculate with it the 10 get's converted into a 1.</p>

<p>I tried casting the number with ($(this).val() * 1), yet that didn't change anything, and anyway; the value is already checked to be a valid numeric value.</p>
