Input Boxes validation with JQuery
<p>Hello this is my second attempt to solve this problem with JQuery<br>
I need Check that a row of input must be minor than other one in the same row for a dinamic table of "n" rows, before send my form...I need check row by row using the input "ID" property...</p>

<p>Here my Code: <a href="http://jsfiddle.net/cespinoza/bQcu2/36/" rel="nofollow">http://jsfiddle.net/cespinoza/bQcu2/36/</a></p>

<pre><code>    &lt;form &gt;
Line 1 Get &lt;input type="val1" name="text1" id="desp" /&gt; from &lt;input type="val1" name="text1" id="cantidad" /&gt;&lt;br&gt;
Line 2 Get &lt;input type="val2" name="text2" id="desp" /&gt; from &lt;input type="val2" name="text2" id="cantidad" /&gt;&lt;br&gt;
Line 3 Get &lt;input type="val3" name="text3" id="desp" /&gt; from &lt;input type="val3" name="text3" id="cantidad" /&gt;&lt;br&gt;

    &lt;button type="submit"&gt;Submit&lt;/button&gt;

&lt;/form&gt;
</code></pre>

<p>Edited: Added the Original JS code</p>

<pre><code>$('#desp').change(function(){

    if($('#desp').val() == $('#cantidad').val())
    {
     alert("First value is greater than second, sorry")
    return False;
    }
    else
    {

    alert("All ok, push to database")
    return True,
    }

});
</code></pre>

<p>Thanks in Advance.<br>
Christian.</p>
