compare values of cells in different rows in table using jquery
<p>I have a dynamically generated table with php that has same rows. Need to get value from cell 1 in row 1 and value from cell 1 in row 2 and compare them. If they are the same remove entire row or hide... Do that for the whole table... Any help is appreciated.. Thanks!!</p>

<p>Haave this so far:</p>

<pre><code>var numRows = $('table#changeSubjectKatedra tr').lenght;
var i = 0;
do {
    var cur = $('input#'+i).val();
    var next = $('input#'+(i+1)).val();
    if(cur == next){
        $('tr#'+i).remove();
        }
    i++;
} while(i&lt;numRows);
</code></pre>

<p>The row in table looks like this:</p>

<pre><code>&lt;tr id='idNum'&gt;&lt;td&gt;someText&lt;input type='hidden' value='someData' id='idNum'&gt;
&lt;/td&gt;&lt;td&gt;someText&lt;/td&gt;&lt;/tr&gt;  
</code></pre>
